com.liferay.portal.kernel.search
Class SearchEngineUtil

java.lang.Object
  extended by com.liferay.portal.kernel.search.SearchEngineUtil

public class SearchEngineUtil
extends java.lang.Object

View Source

Author:
Bruno Farache

Field Summary
static int ALL_POS
           
 
Method Summary
static void addDocument(long companyId, Document doc)
           
static void deleteDocument(long companyId, java.lang.String uid)
           
static void deletePortletDocuments(long companyId, java.lang.String portletId)
           
static void init(IndexSearcher defaultIndexSearcher, IndexWriter defaultIndexWriter)
           
static boolean isIndexReadOnly()
           
static Hits search(long companyId, Query query, int start, int end)
           
static Hits search(long companyId, Query query, Sort sort, int start, int end)
           
static void updateDocument(long companyId, java.lang.String uid, Document doc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALL_POS

public static final int ALL_POS
See Also:
Constant Field Values
Method Detail

addDocument

public static void addDocument(long companyId,
                               Document doc)
                        throws SearchException
Throws:
SearchException

deleteDocument

public static void deleteDocument(long companyId,
                                  java.lang.String uid)
                           throws SearchException
Throws:
SearchException

deletePortletDocuments

public static void deletePortletDocuments(long companyId,
                                          java.lang.String portletId)
                                   throws SearchException
Throws:
SearchException

init

public static void init(IndexSearcher defaultIndexSearcher,
                        IndexWriter defaultIndexWriter)

isIndexReadOnly

public static boolean isIndexReadOnly()

search

public static Hits search(long companyId,
                          Query query,
                          int start,
                          int end)
                   throws SearchException
Throws:
SearchException

search

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

updateDocument

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