query_lucene.py
def query_parser_must(self, field_values, field_must=['Text']):
		"""
		The values that the fields must match
		:param field_values: values of the fields
		:param field_must: fields that must match
		"""
		assert len(field_must) == len(field_values), "Number of fields different from number of values"
		for i in range(len(field_must)):
			query_parser = QueryParser(field_must[i], self.analyzer)
			query = query_parser.parse(field_values[i])
			self.constrained_query.add(query, BooleanClause.Occur.MUST)

		The values that the fields must match
		:param field_values: values of the fields
		:param field_must: fields that must match
		
The values that the fields must match
The values that the fields must match
def query_parser_must(self, field_values, field_must=['Text']):
		assert len(field_must) == len(field_values), "Number of fields different from number of values"
		for i in range(len(field_must)):
			query_parser = QueryParser(field_must[i], self.analyzer)
			query = query_parser.parse(field_values[i])
			self.constrained_query.add(query, BooleanClause.Occur.MUST)
def query_parser_must ( self , field_values , field_must = [ 'Text' ] ) : assert len ( field_must ) == len ( field_values ) , "Number of fields different from number of values" for i in range ( len ( field_must ) ) : query_parser = QueryParser ( field_must [ i ] , self . analyzer ) query = query_parser . parse ( field_values [ i ] ) self . constrained_query . add ( query , BooleanClause . Occur . MUST )
The values that the fields must match
The values that the fields must match
"""
		The values that the fields must match
		:param field_values: values of the fields
		:param field_must: fields that must match
		"""
self
field_values
values of the fields
values of the fields
field_must
fields that must match
fields that must match