Example usage for Java org.apache.lucene.facet FacetsConfig fields, constructors, methods, implement or subclass
The text is from its open source code.
String | DEFAULT_INDEX_FIELD_NAME Which Lucene field holds the drill-downs and ords (as doc values). |
FacetsConfig() Default constructor. |
Document | build(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 ). |
Document | build(TaxonomyWriter taxoWriter, Document doc) Translates any added FacetField s into normal fields for indexing. |
DimConfig | getDimConfig(String dimName) Get the current configuration for a dimension. |
String | pathToString(String dim, String[] path) Turns a dim + path into an encoded string. |
String | pathToString(String[] path, int length) Turns the first length elements of path into an encoded string. |
void | setHierarchical(String dimName, boolean v) Pass true if this dimension is hierarchical (has depth > 1 paths). |
void | setIndexFieldName(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. |
void | setMultiValued(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[] . |