Liferay 6.2-ce-ga5

com.liferay.portal.search.lucene
Class LuceneIndexSearcher

java.lang.Object
  extended by com.liferay.portal.kernel.search.BaseIndexSearcher
      extended by com.liferay.portal.search.lucene.LuceneIndexSearcher
All Implemented Interfaces:
IndexSearcher, QuerySuggester

public class LuceneIndexSearcher
extends BaseIndexSearcher


Constructor Summary
LuceneIndexSearcher()
           
 
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 com.liferay.portal.kernel.search.BaseIndexSearcher
setQuerySuggester, spellCheckKeywords, spellCheckKeywords, suggestKeywordQueries
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LuceneIndexSearcher

public LuceneIndexSearcher()
Method Detail

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

Liferay 6.2-ce-ga5