com.liferay.portal.search.lucene
Class LuceneIndexSearcherImpl

java.lang.Object
  extended by com.liferay.portal.search.lucene.LuceneIndexSearcherImpl
All Implemented Interfaces:
com.liferay.portal.kernel.search.IndexSearcher

public class LuceneIndexSearcherImpl
extends java.lang.Object
implements com.liferay.portal.kernel.search.IndexSearcher

View Source

Author:
Bruno Farache

Constructor Summary
LuceneIndexSearcherImpl()
           
 
Method Summary
protected  com.liferay.portal.kernel.search.DocumentImpl getDocument(org.apache.lucene.document.Document oldDoc)
           
protected  java.lang.String[] getQueryTerms(com.liferay.portal.kernel.search.Query query)
           
protected  java.lang.String getSnippet(org.apache.lucene.document.Document doc, com.liferay.portal.kernel.search.Query query, java.lang.String field)
           
 com.liferay.portal.kernel.search.Hits search(long companyId, com.liferay.portal.kernel.search.Query query, com.liferay.portal.kernel.search.Sort[] sorts, int start, int end)
           
protected  com.liferay.portal.kernel.search.Hits toHits(org.apache.lucene.search.IndexSearcher indexSearcher, org.apache.lucene.search.TopFieldDocs topFieldDocs, com.liferay.portal.kernel.search.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
 

Constructor Detail

LuceneIndexSearcherImpl

public LuceneIndexSearcherImpl()
Method Detail

search

public com.liferay.portal.kernel.search.Hits search(long companyId,
                                                    com.liferay.portal.kernel.search.Query query,
                                                    com.liferay.portal.kernel.search.Sort[] sorts,
                                                    int start,
                                                    int end)
                                             throws com.liferay.portal.kernel.search.SearchException
Specified by:
search in interface com.liferay.portal.kernel.search.IndexSearcher
Throws:
com.liferay.portal.kernel.search.SearchException

getDocument

protected com.liferay.portal.kernel.search.DocumentImpl getDocument(org.apache.lucene.document.Document oldDoc)

getQueryTerms

protected java.lang.String[] getQueryTerms(com.liferay.portal.kernel.search.Query query)

getSnippet

protected java.lang.String getSnippet(org.apache.lucene.document.Document doc,
                                      com.liferay.portal.kernel.search.Query query,
                                      java.lang.String field)
                               throws java.io.IOException
Throws:
java.io.IOException

toHits

protected com.liferay.portal.kernel.search.Hits toHits(org.apache.lucene.search.IndexSearcher indexSearcher,
                                                       org.apache.lucene.search.TopFieldDocs topFieldDocs,
                                                       com.liferay.portal.kernel.search.Query query,
                                                       long startTime,
                                                       float searchTime,
                                                       int start,
                                                       int end)
                                                throws java.io.IOException
Throws:
java.io.IOException