com.atlassian.confluence.search.v2.lucene.mapper
Class CaseInsensitiveSortMapper

java.lang.Object
  extended by com.atlassian.confluence.search.v2.lucene.mapper.CaseInsensitiveSortMapper
All Implemented Interfaces:
LuceneSortMapper

public class CaseInsensitiveSortMapper
extends Object
implements LuceneSortMapper

Map sorts on a specified field to a case insensitive Lucene sort. The field you choose to sort on must be un-tokenized for the sorting to work as expected.


Constructor Summary
CaseInsensitiveSortMapper(String fieldName)
           
 
Method Summary
 org.apache.lucene.search.Sort convertToLuceneSort(SearchSort searchSort)
          Converts a search sort into a lucene sort.
 String getSortFieldName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CaseInsensitiveSortMapper

public CaseInsensitiveSortMapper(String fieldName)
Method Detail

convertToLuceneSort

public org.apache.lucene.search.Sort convertToLuceneSort(SearchSort searchSort)
Converts a search sort into a lucene sort.

Specified by:
convertToLuceneSort in interface LuceneSortMapper

getSortFieldName

public String getSortFieldName()


Copyright © 2003-2011 Atlassian. All Rights Reserved.