Package org.apache.lucene.facet
Class MultiFacetQuery
java.lang.Object
org.apache.lucene.search.Query
org.apache.lucene.search.MultiTermQuery
org.apache.lucene.search.TermInSetQuery
org.apache.lucene.facet.MultiFacetQuery
- All Implemented Interfaces:
Accountable
A multi-terms
Query over a FacetField.
NOTE:This helper class is an alternative to DrillDownQuery especially in cases
where you don't intend to use DrillSideways
- See Also:
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.search.MultiTermQuery
MultiTermQuery.RewriteMethod, MultiTermQuery.TopTermsBlendedFreqScoringRewrite, MultiTermQuery.TopTermsBoostOnlyBooleanQueryRewrite, MultiTermQuery.TopTermsScoringBooleanQueryRewrite -
Field Summary
Fields inherited from class org.apache.lucene.search.MultiTermQuery
CONSTANT_SCORE_BLENDED_REWRITE, CONSTANT_SCORE_BOOLEAN_REWRITE, CONSTANT_SCORE_REWRITE, DOC_VALUES_REWRITE, rewriteMethod, SCORING_BOOLEAN_REWRITEFields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Constructor Summary
ConstructorsConstructorDescriptionMultiFacetQuery(String dimension, String[]... paths) Creates a newMultiFacetQueryfiltering the query on the given dimension.MultiFacetQuery(FacetsConfig facetsConfig, String dimension, String[]... paths) Creates a newMultiFacetQueryfiltering the query on the given dimension. -
Method Summary
Methods inherited from class org.apache.lucene.search.TermInSetQuery
equals, getBytesRefIterator, getChildResources, getTermsCount, getTermsEnum, hashCode, ramBytesUsed, toString, visitMethods inherited from class org.apache.lucene.search.MultiTermQuery
getField, getRewriteMethod, getTermsEnum, rewriteMethods inherited from class org.apache.lucene.search.Query
classHash, createWeight, sameClassAs, toString
-
Constructor Details
-
MultiFacetQuery
Creates a newMultiFacetQueryfiltering the query on the given dimension. -
MultiFacetQuery
Creates a newMultiFacetQueryfiltering the query on the given dimension.NOTE:Uses FacetsConfig.DEFAULT_DIM_CONFIG.
-