You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by gnandre <ar...@gmail.com> on 2021/01/08 23:11:01 UTC

FST building precaution

Hi,

following comment is mentioned in
https://github.com/apache/lucene-solr/blob/master/lucene/core/src/java/org/apache/lucene/util/fst/package-info.java
.


 "Input values (keys). These must be provided to Builder in Unicode code
point (UTF8 or UTF32) sorted order. Note that sorting by Java's
String.compareTo, which is UTF16 sorted order, is not correct and can lead
to exceptions while building the FST"

Can someone please suggest how to achieve this?