Hi
in the reference guide about language analysis you can find an example
where docvalues are used in combination with the solr.ICUCollationField type


<!-- Define a field type for German collation -->
<fieldType name="collatedGERMAN" class="solr.ICUCollationField"
           locale="de"
           strength="primary" />
...
<!-- Define a field to store the German collated manufacturer names. -->
<field name="manuGERMAN" type="collatedGERMAN" indexed="false" stored=
"false" docValues="true"/>
...
<!-- Copy the text to this field. We could create French, English, Spanish
versions too,
     and sort differently for different users! -->
<copyField source="manu" dest="manuGERMAN"/>





But the documentation about docvalues itself
https://cwiki.apache.org/confluence/display/solr/DocValues

says you can only use the docvalue strategy for a limited set of types

DocValues are only available for specific field types. The types chosen
determine the underlying Lucene docValue type that will be used. The
available Solr field types are:

   - StrField and UUIDField.
   - If the field is single-valued (i.e., multi-valued is false), Lucene
      will use the SORTED type.
      - If the field is multi-valued, Lucene will use the SORTED_SET type.
   - Any Trie* numeric fields and EnumField.
   - If the field is single-valued (i.e., multi-valued is false), Lucene
      will use the NUMERIC type.
      - If the field is multi-valued, Lucene will use the SORTED_SET type.



ICUCollationField isn't mentioned.

Any clarification about this?

Thanks a lot,
Günter

Reply via email to