You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by ik...@axsone.com on 2013/08/06 18:35:33 UTC

TermRangeQuery with a custom comparator

Hello,
In earlier versions of Lucene the TermRangeQuery constructor was able to take a Collator object in order to provide a custom comparator for comparing terms when determining whether or not a document's term fell within the search range. In Lucene 4.x this functionality has been removed, so my question is, is there a way to provide a custom comparator to a TermRangeQuery if a specific field cannot be compared using the standard BytesRef.compareTo()?