DocValues-enabled TextField for Apache Solr.
- DocValuesTextField (which is subclass of solr.TextField)
Add some fieldTypes to solr schema.xml
(and fields using them):
<schema name="example" version="1.5">
<!-- ... -->
<field name="ne" type="ne_string"/>
<field name="nef" type="nef_string"/>
<copyField source="ne" dest="nef"/>
<!-- ... -->
<fieldType name="nef_string" class="org.anenerbe.solr.DocValuesTextField"
indexed="false" stored="false" multiValued="true" docValues="true">
<analyzer type="index">
<tokenizer class="solr.KeywordTokenizerFactory"/>
<filter class="solr.ASCIIFoldingFilterFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
</analyzer>
<analyzer type="query">
<tokenizer class="solr.KeywordTokenizerFactory"/>
<filter class="solr.ASCIIFoldingFilterFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
</analyzer>
</fieldType>
<fieldType name="ne_string" class="org.anenerbe.solr.DocValuesTextField"
indexed="true" stored="true" multiValued="true" docValues="true">
<analyzer type="index">
<tokenizer class="solr.KeywordTokenizerFactory"/>
<filter class="solr.ASCIIFoldingFilterFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.ReversedWildcardFilterFactory"/>
</analyzer>
<analyzer type="query">
<tokenizer class="solr.KeywordTokenizerFactory"/>
<filter class="solr.ASCIIFoldingFilterFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
</analyzer>
</fieldType>
<!-- ... -->
</schema>
Licensed under MIT License. See LICENSE file.