FST building precaution

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

FST building precaution

gnandre
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?