Hi,
I'd like to use the ducet sorting available from the icu plugin but am finding it difficult. Is there a definitive example somewhere? There's problematic differences between the examples in the definitive guide (2.x), the documentation of 5.2 (the version I'm using) and the latest thinking.
You cannot apply an analyzer to a field of type keyword. Only text fields are analyzed. You have to use an normalizer instead. Unfortunately, I don't think you can use the icu_collation filter in a normalizer.
If you cannot upgrade to 5.5, the only solution is to use a text field instead of a keyword field and apply your analyzer to that text field. The downside is that you will have to enable fielddata if you decide to go that way.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.