org.apache.lucene.facet.codecs.facet45
Class Facet45Codec

java.lang.Object
  extended by org.apache.lucene.codecs.Codec
      extended by org.apache.lucene.codecs.lucene45.Lucene45Codec
          extended by org.apache.lucene.facet.codecs.facet45.Facet45Codec
All Implemented Interfaces:
NamedSPILoader.NamedSPI

public class Facet45Codec
extends Lucene45Codec

Same as Lucene45Codec 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.

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

Constructor Summary
Facet45Codec()
          Default constructor, uses FacetIndexingParams.DEFAULT.
Facet45Codec(FacetIndexingParams fip)
          Initializes with the given FacetIndexingParams.
 
Method Summary
 DocValuesFormat getDocValuesFormatForField(String field)
           
 
Methods inherited from class org.apache.lucene.codecs.lucene45.Lucene45Codec
docValuesFormat, fieldInfosFormat, getPostingsFormatForField, liveDocsFormat, normsFormat, postingsFormat, segmentInfoFormat, storedFieldsFormat, termVectorsFormat
 
Methods inherited from class org.apache.lucene.codecs.Codec
availableCodecs, forName, getDefault, getName, reloadCodecs, setDefault, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Facet45Codec

public Facet45Codec()
Default constructor, uses FacetIndexingParams.DEFAULT.


Facet45Codec

public Facet45Codec(FacetIndexingParams fip)
Initializes with the given FacetIndexingParams. Returns the proper DocValuesFormat for the fields that are returned by FacetIndexingParams.getAllCategoryListParams().

Method Detail

getDocValuesFormatForField

public DocValuesFormat getDocValuesFormatForField(String field)
Overrides:
getDocValuesFormatForField in class Lucene45Codec


Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.