Apache Solr Documentation

6.5 Ref Guide (PDF Download)
Solr Tutorial
Solr Community Wiki

Older Versions of this Guide (PDF)

Ref Guide Topics

Meta-Documentation

*** As of June 2017, the latest Solr Ref Guide is located at https://lucene.apache.org/solr/guide ***

Please note comments on these pages have now been disabled for all users.

Skip to end of metadata
Go to start of metadata

codecFactory can be specified in solrconfig.xml to determine which Lucene Codec is used when writing the index to disk. 

If not specified, Lucene's default codec is implicitly used, but a solr.SchemaCodecFactory is also available which supports 2 key features:

  • Schema based per-fieldtype configuration for docValuesFormat and postingsFormat - see the Field Type Definitions and Properties section for more details.
  • compressionMode option:
    • BEST_SPEED (default) is optimized for search speed performance
    • BEST_COMPRESSION is optimized for disk space usage

Example:

 

  • No labels