com.liferay.portal.search.lucene
Class LuceneIndexSearcherImpl
java.lang.Object
com.liferay.portal.search.lucene.LuceneIndexSearcherImpl
- All Implemented Interfaces:
- IndexSearcher
public class LuceneIndexSearcherImpl
- extends Object
- implements IndexSearcher
Method Summary |
protected DocumentImpl |
getDocument(org.apache.lucene.document.Document oldDoc)
|
protected String[] |
getQueryTerms(Query query)
|
protected String |
getSnippet(org.apache.lucene.document.Document doc,
Query query,
String field)
|
Hits |
search(long companyId,
Query query,
Sort[] sorts,
int start,
int end)
|
protected Hits |
subset(org.apache.lucene.search.Hits luceneHits,
Query query,
long startTime,
float searchTime,
int start,
int end)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LuceneIndexSearcherImpl
public LuceneIndexSearcherImpl()
search
public Hits search(long companyId,
Query query,
Sort[] sorts,
int start,
int end)
throws SearchException
- Specified by:
search
in interface IndexSearcher
- Throws:
SearchException
getDocument
protected DocumentImpl getDocument(org.apache.lucene.document.Document oldDoc)
getQueryTerms
protected String[] getQueryTerms(Query query)
getSnippet
protected String getSnippet(org.apache.lucene.document.Document doc,
Query query,
String field)
throws IOException
- Throws:
IOException
subset
protected Hits subset(org.apache.lucene.search.Hits luceneHits,
Query query,
long startTime,
float searchTime,
int start,
int end)
throws IOException
- Throws:
IOException