public class Facet42Codec extends Lucene42Codec
Lucene42Codec except it uses Facet42DocValuesFormat
for facet fields (faster-but-more-RAM-consuming doc values).
NOTE: this codec does not support facet partitions (see
FacetIndexingParams.getPartitionSize()).
NOTE: this format cannot handle more than 2 GB of facet data in a single segment. If your usage may hit this limit, you can either use Lucene's default DocValuesFormat, limit the maximum segment size in your MergePolicy, or send us a patch fixing the limitation.
| Constructor and Description |
|---|
Facet42Codec()
Default constructor, uses
FacetIndexingParams.DEFAULT. |
Facet42Codec(FacetIndexingParams fip)
Initializes with the given
FacetIndexingParams. |
| Modifier and Type | Method and Description |
|---|---|
DocValuesFormat |
getDocValuesFormatForField(String field) |
docValuesFormat, fieldInfosFormat, getPostingsFormatForField, liveDocsFormat, normsFormat, postingsFormat, segmentInfoFormat, storedFieldsFormat, termVectorsFormatavailableCodecs, forName, getDefault, getName, reloadCodecs, setDefault, toStringpublic Facet42Codec()
FacetIndexingParams.DEFAULT.public Facet42Codec(FacetIndexingParams fip)
FacetIndexingParams. Returns the proper
DocValuesFormat for the fields that are returned by
FacetIndexingParams.getAllCategoryListParams().public DocValuesFormat getDocValuesFormatForField(String field)
getDocValuesFormatForField in class Lucene42CodecCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.