com.liferay.portal.search.lucene
Class LuceneSearchEngineUtil

java.lang.Object
  extended by com.liferay.portal.search.lucene.LuceneSearchEngineUtil

public class LuceneSearchEngineUtil
extends java.lang.Object

View Source

Author:
Bruno Farache

Constructor Summary
LuceneSearchEngineUtil()
           
 
Method Summary
static void addDocument(long companyId, com.liferay.portal.kernel.search.Document doc)
           
static void deleteDocument(long companyId, java.lang.String uid)
           
static void deletePortletDocuments(long companyId, java.lang.String portletId)
           
static com.liferay.portal.kernel.search.SearchEngine getSearchEngine()
           
static void init()
           
static boolean isIndexReadOnly()
           
static com.liferay.portal.kernel.search.Hits search(long companyId, com.liferay.portal.kernel.search.Query query, int start, int end)
           
static com.liferay.portal.kernel.search.Hits search(long companyId, com.liferay.portal.kernel.search.Query query, com.liferay.portal.kernel.search.Sort sort, int start, int end)
           
static void updateDocument(long companyId, java.lang.String uid, com.liferay.portal.kernel.search.Document doc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LuceneSearchEngineUtil

public LuceneSearchEngineUtil()
Method Detail

addDocument

public static void addDocument(long companyId,
                               com.liferay.portal.kernel.search.Document doc)
                        throws com.liferay.portal.kernel.search.SearchException
Throws:
com.liferay.portal.kernel.search.SearchException

deleteDocument

public static void deleteDocument(long companyId,
                                  java.lang.String uid)
                           throws com.liferay.portal.kernel.search.SearchException
Throws:
com.liferay.portal.kernel.search.SearchException

deletePortletDocuments

public static void deletePortletDocuments(long companyId,
                                          java.lang.String portletId)
                                   throws com.liferay.portal.kernel.search.SearchException
Throws:
com.liferay.portal.kernel.search.SearchException

getSearchEngine

public static com.liferay.portal.kernel.search.SearchEngine getSearchEngine()

init

public static void init()

isIndexReadOnly

public static boolean isIndexReadOnly()

search

public static com.liferay.portal.kernel.search.Hits search(long companyId,
                                                           com.liferay.portal.kernel.search.Query query,
                                                           int start,
                                                           int end)
                                                    throws com.liferay.portal.kernel.search.SearchException
Throws:
com.liferay.portal.kernel.search.SearchException

search

public static com.liferay.portal.kernel.search.Hits search(long companyId,
                                                           com.liferay.portal.kernel.search.Query query,
                                                           com.liferay.portal.kernel.search.Sort sort,
                                                           int start,
                                                           int end)
                                                    throws com.liferay.portal.kernel.search.SearchException
Throws:
com.liferay.portal.kernel.search.SearchException

updateDocument

public static void updateDocument(long companyId,
                                  java.lang.String uid,
                                  com.liferay.portal.kernel.search.Document doc)
                           throws com.liferay.portal.kernel.search.SearchException
Throws:
com.liferay.portal.kernel.search.SearchException