Package com.liferay.portal.kernel.search
Class IndexWriterHelperUtil
Object
com.liferay.portal.kernel.search.IndexWriterHelperUtil
- Author:
- Michael C. Han
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddDocument(long companyId, Document document, boolean commitImmediately) static voidaddDocuments(long companyId, Collection<Document> documents, boolean commitImmediately) static voidcommit()static voidcommit(long companyId) static voiddeleteDocument(long companyId, String uid, boolean commitImmediately) static voiddeleteDocuments(long companyId, Collection<String> uids, boolean commitImmediately) static voiddeleteEntityDocuments(long companyId, String className, boolean commitImmediately) static intgetReindexTaskCount(long groupId, boolean completed) static voidindexKeyword(long companyId, String querySuggestion, float weight, String keywordType, Locale locale) static voidindexQuerySuggestionDictionaries(long companyId) static voidindexQuerySuggestionDictionary(long companyId, Locale locale) static voidindexSpellCheckerDictionaries(long companyId) static voidindexSpellCheckerDictionary(long companyId, Locale locale) static booleanDeprecated.static booleanisIndexReadOnly(String className) Deprecated.As of Judson (7.1.x), replaced bycom.liferay.portal.search.index.IndexStatusManager#isIndexReadOnly(String)static voidpartiallyUpdateDocument(long companyId, Document document, boolean commitImmediately) static voidpartiallyUpdateDocuments(long companyId, Collection<Document> documents, boolean commitImmediately) static BackgroundTaskreindex(long userId, String jobName, long[] companyIds, String className, Map<String, Serializable> taskContextMap) static BackgroundTaskreindex(long userId, String jobName, long[] companyIds, Map<String, Serializable> taskContextMap) static voidsetIndexReadOnly(boolean indexReadOnly) Deprecated.As of Wilberforce (7.0.x), replaced bycom.liferay.portal.search.index.IndexStatusManager#setIndexReadOnly(boolean)static voidsetIndexReadOnly(String className, boolean indexReadOnly) Deprecated.As of Judson (7.1.x), replaced bycom.liferay.portal.search.index.IndexStatusManager#setIndexReadOnly(String, boolean)static voidupdateDocument(long companyId, Document document) static voidupdateDocuments(long companyId, Collection<Document> documents, boolean commitImmediately) static voidupdatePermissionFields(String name, String primKey)
-
Constructor Details
-
IndexWriterHelperUtil
public IndexWriterHelperUtil()
-
-
Method Details
-
addDocument
public static void addDocument(long companyId, Document document, boolean commitImmediately) throws SearchException - Throws:
SearchException
-
addDocuments
public static void addDocuments(long companyId, Collection<Document> documents, boolean commitImmediately) throws SearchException - Throws:
SearchException
-
commit
- Throws:
SearchException
-
commit
- Throws:
SearchException
-
deleteDocument
public static void deleteDocument(long companyId, String uid, boolean commitImmediately) throws SearchException - Throws:
SearchException
-
deleteDocuments
public static void deleteDocuments(long companyId, Collection<String> uids, boolean commitImmediately) throws SearchException - Throws:
SearchException
-
deleteEntityDocuments
public static void deleteEntityDocuments(long companyId, String className, boolean commitImmediately) throws SearchException - Throws:
SearchException
-
getReindexTaskCount
- Throws:
SearchException
-
indexKeyword
public static void indexKeyword(long companyId, String querySuggestion, float weight, String keywordType, Locale locale) throws SearchException - Throws:
SearchException
-
indexQuerySuggestionDictionaries
- Throws:
SearchException
-
indexQuerySuggestionDictionary
public static void indexQuerySuggestionDictionary(long companyId, Locale locale) throws SearchException - Throws:
SearchException
-
indexSpellCheckerDictionaries
- Throws:
SearchException
-
indexSpellCheckerDictionary
public static void indexSpellCheckerDictionary(long companyId, Locale locale) throws SearchException - Throws:
SearchException
-
isIndexReadOnly
Deprecated.As of Wilberforce (7.0.x), replaced bycom.liferay.portal.search.index.IndexStatusManager#isIndexReadOnly -
isIndexReadOnly
Deprecated.As of Judson (7.1.x), replaced bycom.liferay.portal.search.index.IndexStatusManager#isIndexReadOnly(String) -
partiallyUpdateDocument
public static void partiallyUpdateDocument(long companyId, Document document, boolean commitImmediately) throws SearchException - Throws:
SearchException
-
partiallyUpdateDocuments
public static void partiallyUpdateDocuments(long companyId, Collection<Document> documents, boolean commitImmediately) throws SearchException - Throws:
SearchException
-
reindex
public static BackgroundTask reindex(long userId, String jobName, long[] companyIds, Map<String, Serializable> taskContextMap) throws SearchException- Throws:
SearchException
-
reindex
public static BackgroundTask reindex(long userId, String jobName, long[] companyIds, String className, Map<String, Serializable> taskContextMap) throws SearchException- Throws:
SearchException
-
setIndexReadOnly
Deprecated.As of Wilberforce (7.0.x), replaced bycom.liferay.portal.search.index.IndexStatusManager#setIndexReadOnly(boolean) -
setIndexReadOnly
Deprecated.As of Judson (7.1.x), replaced bycom.liferay.portal.search.index.IndexStatusManager#setIndexReadOnly(String, boolean) -
updateDocument
- Throws:
SearchException
-
updateDocuments
public static void updateDocuments(long companyId, Collection<Document> documents, boolean commitImmediately) throws SearchException - Throws:
SearchException
-
updatePermissionFields
-
com.liferay.portal.search.index.IndexStatusManager#isIndexReadOnly