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 a BooleanQuery to its corresponding Lucene Query.
  • Field Details

    • SKIP_BATCHING_BOOLEAN_QUERY

      public static final String SKIP_BATCHING_BOOLEAN_QUERY
      This will control whether we should skip batching
      See Also:
    • 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 equal BooleanQuery.getMaxClauseCount()
      See Also:
  • Constructor Details

    • BooleanQueryMapper

      public BooleanQueryMapper()
    • BooleanQueryMapper

      public BooleanQueryMapper(LuceneSearchMapper searchMapper)
    • 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

      public org.apache.lucene.search.Query convertToLuceneQuery(BooleanQuery boolQuery)
      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 interface LuceneQueryMapper<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)