Class BooleanQueryMapper
java.lang.Object
com.atlassian.confluence.impl.search.v2.mappers.BooleanQueryMapper
- All Implemented Interfaces:
LuceneQueryMapper<BooleanQuery>
Maps a
BooleanQuery
to its corresponding Lucene Query
.-
Field Summary
-
Constructor Summary
ConstructorDescriptionBooleanQueryMapper
(LuceneSearchMapper searchMapper) BooleanQueryMapper
(LuceneSearchMapper searchMapper, com.atlassian.sal.api.features.DarkFeatureManager darkFeatureManager) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.search.Query
convertToLuceneQuery
(BooleanQuery boolQuery) Convert a SearchQuery into a lucene query.protected int
void
setMaxClauseCount
(int maxClauseCount) void
setSearchMapper
(LuceneSearchMapper searchMapper)
-
Field Details
-
SKIP_BATCHING_BOOLEAN_QUERY
This will control whether we should skip batching- See Also:
-
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:
-
-
Constructor Details
-
BooleanQueryMapper
public BooleanQueryMapper() -
BooleanQueryMapper
-
BooleanQueryMapper
public BooleanQueryMapper(LuceneSearchMapper searchMapper, com.atlassian.sal.api.features.DarkFeatureManager darkFeatureManager)
-
-
Method Details
-
getMaxClauseCount
protected int getMaxClauseCount() -
setMaxClauseCount
public void setMaxClauseCount(int maxClauseCount) -
convertToLuceneQuery
Description copied from interface:LuceneQueryMapper
Convert 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:
convertToLuceneQuery
in 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
-