I'd like to use icu_collation to normalize fields with "keyword" type - the goal is to make sorting behave properly on string in a certain language. But ElasticSearch does not let me do that - it complains that: "Custom normalizer [my_normalizer] may not use filter [icu_collation]"
After replacing icu_collation with icu_normalizer the mapping is accepted by ElasticSearch, but I need sorting, not normalization.
Is it possible to use icu_collation with keywords (or in general without field data)?
My ICU collation key analyzer creates byte sequences which can be used as a sort key in ES. With store:true it should be possible to sort on field word.
Even with store=true it complains about disabled field data for text fields.
I think it will be easier to just use ICU in the application and send to elasticsearch documents with already computed collation key (inside keyword field).
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.