Class CaseInsensitiveSortComparator
- java.lang.Object
-
- org.apache.lucene.search.FieldComparator<org.apache.lucene.util.BytesRef>
-
- com.atlassian.confluence.search.lucene.CaseInsensitiveSortComparator
-
public final class CaseInsensitiveSortComparator extends org.apache.lucene.search.FieldComparator<org.apache.lucene.util.BytesRef>A Lucene SortComparator that will convert field text to lower case effectively rendering all comparisons case insensitive.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.lucene.search.FieldComparator
org.apache.lucene.search.FieldComparator.ByteComparator, org.apache.lucene.search.FieldComparator.DocComparator, org.apache.lucene.search.FieldComparator.DoubleComparator, org.apache.lucene.search.FieldComparator.FloatComparator, org.apache.lucene.search.FieldComparator.IntComparator, org.apache.lucene.search.FieldComparator.LongComparator, org.apache.lucene.search.FieldComparator.NumericComparator<T extends Number>, org.apache.lucene.search.FieldComparator.RelevanceComparator, org.apache.lucene.search.FieldComparator.ShortComparator, org.apache.lucene.search.FieldComparator.TermOrdValComparator, org.apache.lucene.search.FieldComparator.TermValComparator
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(int slot1, int slot2)intcompareBottom(int doc)intcompareDocToValue(int doc, org.apache.lucene.util.BytesRef value)intcompareValues(org.apache.lucene.util.BytesRef val1, org.apache.lucene.util.BytesRef val2)voidcopy(int slot, int doc)voidsetBottom(int bottom)org.apache.lucene.search.FieldComparator<org.apache.lucene.util.BytesRef>setNextReader(org.apache.lucene.index.AtomicReaderContext context)org.apache.lucene.util.BytesRefvalue(int slot)
-
-
-
Method Detail
-
compare
public int compare(int slot1, int slot2)- Specified by:
comparein classorg.apache.lucene.search.FieldComparator<org.apache.lucene.util.BytesRef>
-
compareBottom
public int compareBottom(int doc)
- Specified by:
compareBottomin classorg.apache.lucene.search.FieldComparator<org.apache.lucene.util.BytesRef>
-
copy
public void copy(int slot, int doc)- Specified by:
copyin classorg.apache.lucene.search.FieldComparator<org.apache.lucene.util.BytesRef>
-
setNextReader
public org.apache.lucene.search.FieldComparator<org.apache.lucene.util.BytesRef> setNextReader(org.apache.lucene.index.AtomicReaderContext context) throws IOException- Specified by:
setNextReaderin classorg.apache.lucene.search.FieldComparator<org.apache.lucene.util.BytesRef>- Throws:
IOException
-
setBottom
public void setBottom(int bottom)
- Specified by:
setBottomin classorg.apache.lucene.search.FieldComparator<org.apache.lucene.util.BytesRef>
-
value
public org.apache.lucene.util.BytesRef value(int slot)
- Specified by:
valuein classorg.apache.lucene.search.FieldComparator<org.apache.lucene.util.BytesRef>
-
compareValues
public int compareValues(org.apache.lucene.util.BytesRef val1, org.apache.lucene.util.BytesRef val2)- Overrides:
compareValuesin classorg.apache.lucene.search.FieldComparator<org.apache.lucene.util.BytesRef>
-
compareDocToValue
public int compareDocToValue(int doc, org.apache.lucene.util.BytesRef value)- Specified by:
compareDocToValuein classorg.apache.lucene.search.FieldComparator<org.apache.lucene.util.BytesRef>
-
-