lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guenter Hipler <hipl...@googlemail.com>
Subject using doc values for ICUCollationField
Date Fri, 01 Jan 2016 15:20:30 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message