Liferay 7.0-ce-m3

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)
           
protected  Hits toHits(org.apache.lucene.search.IndexSearcher indexSearcher, com.browseengine.bobo.api.BrowseResult browseResult, Query query, long startTime, float searchTime, int start, int end)
           
 
Methods inherited from class com.liferay.portal.kernel.search.BaseIndexSearcher
search, 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

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.browseengine.bobo.api.BrowseResult browseResult,
                      Query query,
                      long startTime,
                      float searchTime,
                      int start,
                      int end)
               throws IOException,
                      ParseException
Throws:
IOException
ParseException

Liferay 7.0-ce-m3