public class IndexWriterHelperUtil
extends Object
| Constructor and Description |
|---|
IndexWriterHelperUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addDocument(long companyId,
Document document,
boolean commitImmediately) |
static void |
addDocuments(long companyId,
Collection<Document> documents,
boolean commitImmediately) |
static void |
commit() |
static void |
commit(long companyId) |
static void |
deleteDocument(long companyId,
String uid,
boolean commitImmediately) |
static void |
deleteDocuments(long companyId,
Collection<String> uids,
boolean commitImmediately) |
static void |
deleteEntityDocuments(long companyId,
String className,
boolean commitImmediately) |
static int |
getReindexTaskCount(long groupId,
boolean completed) |
static void |
indexKeyword(long companyId,
String querySuggestion,
float weight,
String keywordType,
Locale locale) |
static void |
indexQuerySuggestionDictionaries(long companyId) |
static void |
indexQuerySuggestionDictionary(long companyId,
Locale locale) |
static void |
indexSpellCheckerDictionaries(long companyId) |
static void |
indexSpellCheckerDictionary(long companyId,
Locale locale) |
static boolean |
isIndexReadOnly()
Deprecated.
As of Wilberforce (7.0.x), replaced by
com.liferay.portal.search.index.IndexStatusManager#isIndexReadOnly |
static boolean |
isIndexReadOnly(String className)
Deprecated.
As of Judson (7.1.x), replaced by
com.liferay.portal.search.index.IndexStatusManager#isIndexReadOnly(
String) |
static void |
partiallyUpdateDocument(long companyId,
Document document,
boolean commitImmediately) |
static void |
partiallyUpdateDocuments(long companyId,
Collection<Document> documents,
boolean commitImmediately) |
static BackgroundTask |
reindex(long userId,
String jobName,
long[] companyIds,
Map<String,Serializable> taskContextMap) |
static BackgroundTask |
reindex(long userId,
String jobName,
long[] companyIds,
String className,
Map<String,Serializable> taskContextMap) |
static void |
setIndexReadOnly(boolean indexReadOnly)
Deprecated.
As of Wilberforce (7.0.x), replaced by
com.liferay.portal.search.index.IndexStatusManager#setIndexReadOnly(
boolean) |
static void |
setIndexReadOnly(String className,
boolean indexReadOnly)
Deprecated.
As of Judson (7.1.x), replaced by
com.liferay.portal.search.index.IndexStatusManager#setIndexReadOnly(
String, boolean) |
static void |
updateDocument(long companyId,
Document document) |
static void |
updateDocuments(long companyId,
Collection<Document> documents,
boolean commitImmediately) |
static void |
updatePermissionFields(String name,
String primKey) |
public static void addDocument(long companyId,
Document document,
boolean commitImmediately)
throws SearchException
SearchExceptionpublic static void addDocuments(long companyId,
Collection<Document> documents,
boolean commitImmediately)
throws SearchException
SearchExceptionpublic static void commit()
throws SearchException
SearchExceptionpublic static void commit(long companyId)
throws SearchException
SearchExceptionpublic static void deleteDocument(long companyId,
String uid,
boolean commitImmediately)
throws SearchException
SearchExceptionpublic static void deleteDocuments(long companyId,
Collection<String> uids,
boolean commitImmediately)
throws SearchException
SearchExceptionpublic static void deleteEntityDocuments(long companyId,
String className,
boolean commitImmediately)
throws SearchException
SearchExceptionpublic static int getReindexTaskCount(long groupId,
boolean completed)
throws SearchException
SearchExceptionpublic static void indexKeyword(long companyId,
String querySuggestion,
float weight,
String keywordType,
Locale locale)
throws SearchException
SearchExceptionpublic static void indexQuerySuggestionDictionaries(long companyId)
throws SearchException
SearchExceptionpublic static void indexQuerySuggestionDictionary(long companyId,
Locale locale)
throws SearchException
SearchExceptionpublic static void indexSpellCheckerDictionaries(long companyId)
throws SearchException
SearchExceptionpublic static void indexSpellCheckerDictionary(long companyId,
Locale locale)
throws SearchException
SearchException@Deprecated public static boolean isIndexReadOnly()
com.liferay.portal.search.index.IndexStatusManager#isIndexReadOnly@Deprecated public static boolean isIndexReadOnly(String className)
com.liferay.portal.search.index.IndexStatusManager#isIndexReadOnly(
String)public static void partiallyUpdateDocument(long companyId,
Document document,
boolean commitImmediately)
throws SearchException
SearchExceptionpublic static void partiallyUpdateDocuments(long companyId,
Collection<Document> documents,
boolean commitImmediately)
throws SearchException
SearchExceptionpublic static BackgroundTask reindex(long userId, String jobName, long[] companyIds, Map<String,Serializable> taskContextMap) throws SearchException
SearchExceptionpublic static BackgroundTask reindex(long userId, String jobName, long[] companyIds, String className, Map<String,Serializable> taskContextMap) throws SearchException
SearchException@Deprecated public static void setIndexReadOnly(boolean indexReadOnly)
com.liferay.portal.search.index.IndexStatusManager#setIndexReadOnly(
boolean)@Deprecated
public static void setIndexReadOnly(String className,
boolean indexReadOnly)
com.liferay.portal.search.index.IndexStatusManager#setIndexReadOnly(
String, boolean)public static void updateDocument(long companyId,
Document document)
throws SearchException
SearchExceptionpublic static void updateDocuments(long companyId,
Collection<Document> documents,
boolean commitImmediately)
throws SearchException
SearchExceptionpublic static void updatePermissionFields(String name,
String primKey)