Class BooleanQueryMapper

    • 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 equal BooleanQuery.getMaxClauseCount()
        See Also:
        Constant Field Values
    • Constructor Detail

      • BooleanQueryMapper

        public BooleanQueryMapper()
      • 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: 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.