You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2013/05/31 18:53:47 UTC
[Solr Wiki] Update of "DocValues" by SteveRowe
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The "DocValues" page has been changed by SteveRowe:
http://wiki.apache.org/solr/DocValues?action=diff&rev1=2&rev2=3
Comment:
Mention prerequisite SchemaCodecFactory when using per-field doc values formats
{{{<field name="specialCodes" type="int" indexed="false" stored="false" multiValued="true" docValues="true"/>}}}
= Specifying a different Codec implementation =
- . You can specify the {{{docValuesFormat}}} attribute on the fieldType to control the underlying implementation. Note that only the default implementation is supported by future version of Lucene: if you try an alternative format, you may need to switch back to the default and rewrite your index (e.g. forceMerge) before upgrading.
+
+ You can specify the {{{docValuesFormat}}} attribute on the fieldType to control the underlying implementation.
+
+ To enable per-field DocValues formats, {{{SchemaCodecFactory}}} must be configured in [[http://wiki.apache.org/solr/SolrConfigXml#codecFactory|solrconfig.xml]]:
+
+ {{{
+ <codecFactory class="solr.SchemaCodecFactory"/>
+ }}}
+
+ /!\ Note that only the default implementation is supported by future version of Lucene: if you try an alternative format, you may need to switch back to the default and rewrite your index (e.g. forceMerge) before upgrading.
* {{{docValuesFormat="Lucene42"}}}: This is the default, which loads everything into heap memory.
* {{{docValuesFormat="Disk"}}}: This implementation has a different layout, to try to keep most data on disk but with reasonable performance.
@@ -89, +98 @@
Example of altering the codec implementation:
- {{{
+ {{{
- <fieldType name="string_disk" class="solr.StrField" docValuesFormat="Disk" />
+ <fieldType name="string_disk" class="solr.StrField" docValuesFormat="Disk" />
- }}}
+ }}}