Class FacetQuery


  • public class FacetQuery
    extends TermQuery
    A term Query over a FacetField.

    NOTE:This helper class is an alternative to DrillDownQuery especially in cases where you don't intend to use DrillSideways

    WARNING: This API is experimental and might change in incompatible ways in the next release.
    • Constructor Detail

      • FacetQuery

        public FacetQuery​(FacetsConfig facetsConfig,
                          String dimension,
                          String... path)
        Creates a new FacetQuery filtering the query on the given dimension.
      • FacetQuery

        public FacetQuery​(String dimension,
                          String... path)
        Creates a new FacetQuery filtering the query on the given dimension.

        NOTE:Uses FacetsConfig.DEFAULT_DIM_CONFIG.