search - Can Lucene's TermRangeQuery use a different sort order? -
lucene's termrangequery
sorts terms according bytesref.compareto
. there exists bytesref.getutf8sortedasunicodecomparator
, there seems no way use termrangequery
.
in fact make sort order more "natural" sorting 'รค' right after 'a' or treat them identical. looking @ code of termrangequery
, end in automaton
class , wonder whether have write own automaton. or there api available missing?
Comments
Post a Comment