Java org.apache.lucene.facet FacetsConfig fields, constructors, methods, implement or subclass

Example usage for Java org.apache.lucene.facet FacetsConfig fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.lucene.facet FacetsConfig.

The text is from its open source code.

Subclass

org.apache.lucene.facet.FacetsConfig has subclasses.
Click this link to see all its subclasses.

Field

StringDEFAULT_INDEX_FIELD_NAME
Which Lucene field holds the drill-downs and ords (as doc values).

Constructor

FacetsConfig()
Default constructor.

Method

Documentbuild(Document doc)
Translates any added FacetField s into normal fields for indexing; only use this version if you did not add any taxonomy-based fields ( FacetField or AssociationFacetField ).
Documentbuild(TaxonomyWriter taxoWriter, Document doc)
Translates any added FacetField s into normal fields for indexing.
DimConfiggetDimConfig(String dimName)
Get the current configuration for a dimension.
StringpathToString(String dim, String[] path)
Turns a dim + path into an encoded string.
StringpathToString(String[] path, int length)
Turns the first length elements of path into an encoded string.
voidsetHierarchical(String dimName, boolean v)
Pass true if this dimension is hierarchical (has depth > 1 paths).
voidsetIndexFieldName(String dimName, String indexFieldName)
Specify which index field name should hold the ordinals for this dimension; this is only used by the taxonomy based facet methods.
voidsetMultiValued(String dimName, boolean v)
Pass true if this dimension may have more than one value per document.
String[]stringToPath(String s)
Turns an encoded string (from a previous call to #pathToString ) back into the original String[] .