Class BooleanQueryMapper
- java.lang.Object
 - 
- com.atlassian.confluence.impl.search.v2.mappers.BooleanQueryMapper
 
 
- 
- All Implemented Interfaces:
 LuceneQueryMapper<BooleanQuery>
public class BooleanQueryMapper extends Object implements LuceneQueryMapper<BooleanQuery>
Maps aBooleanQueryto its corresponding LuceneQuery. 
- 
- 
Field Summary
Fields Modifier and Type Field Description static StringBOOLEAN_QUERY_BATCHING_NUMBERThis is control number of item in a batch.static StringSKIP_BATCHING_BOOLEAN_QUERYThis will control whether we should skip batching 
- 
Constructor Summary
Constructors Constructor Description BooleanQueryMapper()BooleanQueryMapper(LuceneSearchMapper searchMapper)BooleanQueryMapper(LuceneSearchMapper searchMapper, com.atlassian.sal.api.features.DarkFeatureManager darkFeatureManager) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.lucene.search.QueryconvertToLuceneQuery(BooleanQuery boolQuery)Convert a SearchQuery into a lucene query.protected intgetMaxClauseCount()voidsetMaxClauseCount(int maxClauseCount)voidsetSearchMapper(LuceneSearchMapper searchMapper) 
 - 
 
- 
- 
Field Detail
- 
SKIP_BATCHING_BOOLEAN_QUERY
public static final String SKIP_BATCHING_BOOLEAN_QUERY
This will control whether we should skip batching- See Also:
 - Constant Field Values
 
 
- 
BOOLEAN_QUERY_BATCHING_NUMBER
public static final String BOOLEAN_QUERY_BATCHING_NUMBER
This is control number of item in a batch. Note: this number will always less than or equalBooleanQuery.getMaxClauseCount()- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Constructor Detail
- 
BooleanQueryMapper
public BooleanQueryMapper()
 
- 
BooleanQueryMapper
public BooleanQueryMapper(LuceneSearchMapper searchMapper)
 
- 
BooleanQueryMapper
public BooleanQueryMapper(LuceneSearchMapper searchMapper, com.atlassian.sal.api.features.DarkFeatureManager darkFeatureManager)
 
 - 
 
- 
Method Detail
- 
getMaxClauseCount
protected int getMaxClauseCount()
 
- 
setMaxClauseCount
public void setMaxClauseCount(int maxClauseCount)
 
- 
convertToLuceneQuery
public org.apache.lucene.search.Query convertToLuceneQuery(BooleanQuery boolQuery)
Description copied from interface:LuceneQueryMapperConvert a SearchQuery into a lucene query. So a query that represents a search for any value in a particular index field should map to null.- Specified by:
 convertToLuceneQueryin interfaceLuceneQueryMapper<BooleanQuery>- Parameters:
 boolQuery- the query to convert- Returns:
 - the lucene query corresponding to the search query. null can be returned and signifies that no mapped query is necessary for the mapped query.
 
 
- 
setSearchMapper
public void setSearchMapper(LuceneSearchMapper searchMapper)
 
 - 
 
 -