Liferay 6.1.2-ce-ga3

com.liferay.portal.kernel.search
Class SearchEngineUtil

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

public class SearchEngineUtil
extends Object


Field Summary
static int ALL_POS
          Deprecated. QueryUtil.ALL_POS
static String GENERIC_ENGINE_ID
           
static String SYSTEM_ENGINE_ID
           
 
Constructor Summary
SearchEngineUtil()
           
 
Method Summary
static void addDocument(long companyId, Document document)
          Deprecated. addDocument(String, long, Document)
static void addDocument(String searchEngineId, long companyId, Document document)
           
static void addDocuments(long companyId, Collection<Document> documents)
          Deprecated. addDocuments(String, long, Collection)
static void addDocuments(String searchEngineId, long companyId, Collection<Document> documents)
           
static void addSearchEngine(SearchEngine searchEngine)
          Deprecated. setSearchEngine(String, SearchEngine)
static void deleteDocument(long companyId, String uid)
          Deprecated. deleteDocument(String, long, String)
static void deleteDocument(String searchEngineId, long companyId, String uid)
           
static void deleteDocuments(long companyId, Collection<String> uids)
          Deprecated. deleteDocuments(String, long, Collection)
static void deleteDocuments(String searchEngineId, long companyId, Collection<String> uids)
           
static void deletePortletDocuments(long companyId, String portletId)
          Deprecated. deletePortletDocuments(String, long, String)
static void deletePortletDocuments(String searchEngineId, long companyId, String portletId)
           
static String getDefaultSearchEngineId()
           
static String[] getEntryClassNames()
           
static SearchEngine getSearchEngine()
          Deprecated. getSearchEngine(String)
static SearchEngine getSearchEngine(String searchEngineId)
           
static Set<String> getSearchEngineIds()
           
static SearchEngine getSearchEngineSilent(String searchEngineId)
           
static SearchPermissionChecker getSearchPermissionChecker()
           
static String getSearchReaderDestinationName(String searchEngineId)
           
static String getSearchWriterDestinationName(String searchEngineId)
           
static boolean isIndexReadOnly()
           
static SearchEngine removeSearchEngine(String searchEngineId)
           
static Hits search(long companyId, long[] groupIds, long userId, String className, Query query, int start, int end)
          Deprecated.  
static Hits search(long companyId, long[] groupIds, long userId, String className, Query query, Sort[] sorts, int start, int end)
          Deprecated.  
static Hits search(long companyId, long[] groupIds, long userId, String className, Query query, Sort sort, int start, int end)
          Deprecated.  
static Hits search(long companyId, Query query, int start, int end)
          Deprecated. search(String, long, Query, int, int)
static Hits search(long companyId, Query query, Sort[] sorts, int start, int end)
          Deprecated. search(String, long, Query, Sort[], int, int)
static Hits search(long companyId, Query query, Sort sort, int start, int end)
          Deprecated. search(String, long, Query, Sort, int, int)
static Hits search(SearchContext searchContext, Query query)
           
static Hits search(String searchEngineId, long companyId, Query query, int start, int end)
           
static Hits search(String searchEngineId, long companyId, Query query, Sort[] sorts, int start, int end)
           
static Hits search(String searchEngineId, long companyId, Query query, Sort sort, int start, int end)
           
static void setDefaultSearchEngineId(String defaultSearchEngineId)
           
 void setExcludedEntryClassNames(List<String> excludedEntryClassNames)
           
static void setIndexReadOnly(boolean indexReadOnly)
           
 void setSearchEngine(SearchEngine searchEngine)
          Deprecated. setSearchEngine(String, SearchEngine)
static void setSearchEngine(String searchEngineId, SearchEngine searchEngine)
           
 void setSearchPermissionChecker(SearchPermissionChecker searchPermissionChecker)
           
static void updateDocument(long companyId, Document document)
          Deprecated. updateDocument(String, long, Document)
static void updateDocument(String searchEngineId, long companyId, Document document)
           
static void updateDocuments(long companyId, Collection<Document> documents)
          Deprecated. updateDocuments(String, long, Collection)
static void updateDocuments(String searchEngineId, long companyId, Collection<Document> documents)
           
static void updatePermissionFields(long resourceId)
           
static void updatePermissionFields(String name, String primKey)
           
 
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
Deprecated. QueryUtil.ALL_POS
See Also:
Constant Field Values

GENERIC_ENGINE_ID

public static final String GENERIC_ENGINE_ID
See Also:
Constant Field Values

SYSTEM_ENGINE_ID

public static final String SYSTEM_ENGINE_ID
See Also:
Constant Field Values
Constructor Detail

SearchEngineUtil

public SearchEngineUtil()
Method Detail

addDocument

public static void addDocument(long companyId,
                               Document document)
                        throws SearchException
Deprecated. addDocument(String, long, Document)

Throws:
SearchException

addDocument

public static void addDocument(String searchEngineId,
                               long companyId,
                               Document document)
                        throws SearchException
Throws:
SearchException

addDocuments

public static void addDocuments(long companyId,
                                Collection<Document> documents)
                         throws SearchException
Deprecated. addDocuments(String, long, Collection)

Throws:
SearchException

addDocuments

public static void addDocuments(String searchEngineId,
                                long companyId,
                                Collection<Document> documents)
                         throws SearchException
Throws:
SearchException

addSearchEngine

public static void addSearchEngine(SearchEngine searchEngine)
Deprecated. setSearchEngine(String, SearchEngine)


deleteDocument

public static void deleteDocument(long companyId,
                                  String uid)
                           throws SearchException
Deprecated. deleteDocument(String, long, String)

Throws:
SearchException

deleteDocument

public static void deleteDocument(String searchEngineId,
                                  long companyId,
                                  String uid)
                           throws SearchException
Throws:
SearchException

deleteDocuments

public static void deleteDocuments(long companyId,
                                   Collection<String> uids)
                            throws SearchException
Deprecated. deleteDocuments(String, long, Collection)

Throws:
SearchException

deleteDocuments

public static void deleteDocuments(String searchEngineId,
                                   long companyId,
                                   Collection<String> uids)
                            throws SearchException
Throws:
SearchException

deletePortletDocuments

public static void deletePortletDocuments(long companyId,
                                          String portletId)
                                   throws SearchException
Deprecated. deletePortletDocuments(String, long, String)

Throws:
SearchException

deletePortletDocuments

public static void deletePortletDocuments(String searchEngineId,
                                          long companyId,
                                          String portletId)
                                   throws SearchException
Throws:
SearchException

getDefaultSearchEngineId

public static String getDefaultSearchEngineId()

getEntryClassNames

public static String[] getEntryClassNames()

getSearchEngine

public static SearchEngine getSearchEngine()
Deprecated. getSearchEngine(String)


getSearchEngine

public static SearchEngine getSearchEngine(String searchEngineId)

getSearchEngineIds

public static Set<String> getSearchEngineIds()

getSearchEngineSilent

public static SearchEngine getSearchEngineSilent(String searchEngineId)

getSearchPermissionChecker

public static SearchPermissionChecker getSearchPermissionChecker()

getSearchReaderDestinationName

public static String getSearchReaderDestinationName(String searchEngineId)

getSearchWriterDestinationName

public static String getSearchWriterDestinationName(String searchEngineId)

isIndexReadOnly

public static boolean isIndexReadOnly()

removeSearchEngine

public static SearchEngine removeSearchEngine(String searchEngineId)

search

public static Hits search(long companyId,
                          long[] groupIds,
                          long userId,
                          String className,
                          Query query,
                          int start,
                          int end)
                   throws SearchException
Deprecated. 

Throws:
SearchException

search

public static Hits search(long companyId,
                          long[] groupIds,
                          long userId,
                          String className,
                          Query query,
                          Sort sort,
                          int start,
                          int end)
                   throws SearchException
Deprecated. 

Throws:
SearchException

search

public static Hits search(long companyId,
                          long[] groupIds,
                          long userId,
                          String className,
                          Query query,
                          Sort[] sorts,
                          int start,
                          int end)
                   throws SearchException
Deprecated. 

Throws:
SearchException

search

public static Hits search(long companyId,
                          Query query,
                          int start,
                          int end)
                   throws SearchException
Deprecated. search(String, long, Query, int, int)

Throws:
SearchException

search

public static Hits search(long companyId,
                          Query query,
                          Sort sort,
                          int start,
                          int end)
                   throws SearchException
Deprecated. search(String, long, Query, Sort, int, int)

Throws:
SearchException

search

public static Hits search(long companyId,
                          Query query,
                          Sort[] sorts,
                          int start,
                          int end)
                   throws SearchException
Deprecated. search(String, long, Query, Sort[], int, int)

Throws:
SearchException

search

public static Hits search(SearchContext searchContext,
                          Query query)
                   throws SearchException
Throws:
SearchException

search

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

search

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

search

public static Hits search(String searchEngineId,
                          long companyId,
                          Query query,
                          Sort[] sorts,
                          int start,
                          int end)
                   throws SearchException
Throws:
SearchException

setDefaultSearchEngineId

public static void setDefaultSearchEngineId(String defaultSearchEngineId)

setIndexReadOnly

public static void setIndexReadOnly(boolean indexReadOnly)

setSearchEngine

public static void setSearchEngine(String searchEngineId,
                                   SearchEngine searchEngine)

updateDocument

public static void updateDocument(long companyId,
                                  Document document)
                           throws SearchException
Deprecated. updateDocument(String, long, Document)

Throws:
SearchException

updateDocument

public static void updateDocument(String searchEngineId,
                                  long companyId,
                                  Document document)
                           throws SearchException
Throws:
SearchException

updateDocuments

public static void updateDocuments(long companyId,
                                   Collection<Document> documents)
                            throws SearchException
Deprecated. updateDocuments(String, long, Collection)

Throws:
SearchException

updateDocuments

public static void updateDocuments(String searchEngineId,
                                   long companyId,
                                   Collection<Document> documents)
                            throws SearchException
Throws:
SearchException

updatePermissionFields

public static void updatePermissionFields(long resourceId)

updatePermissionFields

public static void updatePermissionFields(String name,
                                          String primKey)

setExcludedEntryClassNames

public void setExcludedEntryClassNames(List<String> excludedEntryClassNames)

setSearchEngine

public void setSearchEngine(SearchEngine searchEngine)
Deprecated. setSearchEngine(String, SearchEngine)


setSearchPermissionChecker

public void setSearchPermissionChecker(SearchPermissionChecker searchPermissionChecker)

Liferay 6.1.2-ce-ga3