com.liferay.portal.search.lucene
Class LuceneIndexSearcher
java.lang.Object
com.liferay.portal.kernel.search.BaseIndexSearcher
com.liferay.portal.search.lucene.LuceneIndexSearcher
- All Implemented Interfaces:
- IndexSearcher, QuerySuggester
public class LuceneIndexSearcher
- extends BaseIndexSearcher
Method Summary |
protected void |
cleanUp(com.browseengine.bobo.api.BoboBrowser boboBrowser)
|
protected DocumentImpl |
getDocument(org.apache.lucene.document.Document oldDocument)
|
protected Set<String> |
getQueryTerms(Query query)
|
protected String |
getSnippet(org.apache.lucene.document.Document doc,
Query query,
String field,
Locale locale,
Document hitDoc,
Set<String> matchingTerms)
|
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.LuceneIndexSearcher.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 |
LuceneIndexSearcher
public LuceneIndexSearcher()
search
public Hits search(SearchContext searchContext,
Query query)
throws SearchException
- Throws:
SearchException
search
public Hits search(String searchEngineId,
long companyId,
Query query,
Sort[] sorts,
int start,
int end)
throws SearchException
- Throws:
SearchException
cleanUp
protected void cleanUp(com.browseengine.bobo.api.BoboBrowser boboBrowser)
getDocument
protected DocumentImpl getDocument(org.apache.lucene.document.Document oldDocument)
getQueryTerms
protected Set<String> getQueryTerms(Query query)
getSnippet
protected String getSnippet(org.apache.lucene.document.Document doc,
Query query,
String field,
Locale locale,
Document hitDoc,
Set<String> matchingTerms)
throws IOException
- Throws:
IOException
toHits
protected Hits toHits(org.apache.lucene.search.IndexSearcher indexSearcher,
com.liferay.portal.search.lucene.LuceneIndexSearcher.HitDocs hitDocs,
Query query,
long startTime,
float searchTime,
int start,
int end)
throws IOException,
ParseException
- Throws:
IOException
ParseException