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 void |
close(com.browseengine.bobo.api.BoboBrowser boboBrowser)
|
protected void |
close(org.apache.lucene.search.IndexSearcher indexSearcher)
|
protected DocumentImpl |
getDocument(org.apache.lucene.document.Document oldDocument)
|
protected String[] |
getQueryTerms(Query query)
|
protected String |
getSnippet(org.apache.lucene.document.Document doc,
Query query,
String field,
Locale locale)
|
Hits |
search(SearchContext searchContext,
Query query)
|
Hits |
search(String searchEngineId,
long companyId,
Query query,
Sort[] sorts,
int start,
int end)
|
protected Hits |
toHits(org.apache.lucene.search.IndexSearcher indexSearcher,
com.liferay.portal.search.lucene.LuceneIndexSearcherImpl.HitDocs hitDocs,
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(SearchContext searchContext,
Query query)
throws SearchException
- Specified by:
search
in interface IndexSearcher
- Throws:
SearchException
search
public Hits search(String searchEngineId,
long companyId,
Query query,
Sort[] sorts,
int start,
int end)
throws SearchException
- Specified by:
search
in interface IndexSearcher
- Throws:
SearchException
close
protected void close(com.browseengine.bobo.api.BoboBrowser boboBrowser)
close
protected void close(org.apache.lucene.search.IndexSearcher indexSearcher)
getDocument
protected DocumentImpl getDocument(org.apache.lucene.document.Document oldDocument)
getQueryTerms
protected String[] getQueryTerms(Query query)
getSnippet
protected String getSnippet(org.apache.lucene.document.Document doc,
Query query,
String field,
Locale locale)
throws IOException
- Throws:
IOException
toHits
protected Hits toHits(org.apache.lucene.search.IndexSearcher indexSearcher,
com.liferay.portal.search.lucene.LuceneIndexSearcherImpl.HitDocs hitDocs,
Query query,
long startTime,
float searchTime,
int start,
int end)
throws IOException,
ParseException
- Throws:
IOException
ParseException