Class FacetHelper
java.lang.Object
org.apache.jackrabbit.oak.plugins.index.lucene.util.FacetHelper
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringIndexPaln Attribute name which refers to the name of the fields that should be used for facets. -
Method Summary
Modifier and TypeMethodDescriptionGet the column names of all the facets from the index plan, if any.static FacetsgetFacets(IndexSearcher searcher, Query query, QueryIndex.IndexPlan plan, org.apache.jackrabbit.oak.plugins.index.search.IndexDefinition.SecureFacetConfiguration secureFacetConfiguration) static FacetsConfiggetFacetsConfig(NodeBuilder definition)
-
Field Details
-
ATTR_FACET_FIELDS
IndexPaln Attribute name which refers to the name of the fields that should be used for facets.- See Also:
-
-
Method Details
-
getFacetsConfig
-
getFacetColumnNamesFromPlan
Get the column names of all the facets from the index plan, if any.- Parameters:
plan- the plan- Returns:
- a list (possibly empty)
-
getFacets
public static Facets getFacets(IndexSearcher searcher, Query query, QueryIndex.IndexPlan plan, org.apache.jackrabbit.oak.plugins.index.search.IndexDefinition.SecureFacetConfiguration secureFacetConfiguration) throws IOException - Throws:
IOException
-