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