@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) |
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
SearchException
void addDocuments(long companyId, Collection<Document> documents, boolean commitImmediately) throws SearchException
SearchException
void commit() throws SearchException
SearchException
void commit(long companyId) throws SearchException
SearchException
void deleteDocument(long companyId, String uid, boolean commitImmediately) throws SearchException
SearchException
void deleteDocuments(long companyId, Collection<String> uids, boolean commitImmediately) throws SearchException
SearchException
void deleteEntityDocuments(long companyId, String className, boolean commitImmediately) throws SearchException
SearchException
int getReindexTaskCount(long groupId, boolean completed) throws SearchException
SearchException
void indexKeyword(long companyId, String querySuggestion, float weight, String keywordType, Locale locale) throws SearchException
SearchException
void indexQuerySuggestionDictionaries(long companyId) throws SearchException
SearchException
void indexQuerySuggestionDictionary(long companyId, Locale locale) throws SearchException
SearchException
void indexSpellCheckerDictionaries(long companyId) throws SearchException
SearchException
void 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
SearchException
void partiallyUpdateDocuments(long companyId, Collection<Document> documents, boolean commitImmediately) throws SearchException
SearchException
BackgroundTask reindex(long userId, String jobName, long[] companyIds, Map<String,Serializable> taskContextMap) throws SearchException
SearchException
BackgroundTask 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) throws SearchException
SearchException
void updateDocuments(long companyId, Collection<Document> documents, boolean commitImmediately) throws SearchException
SearchException
void updatePermissionFields(String name, String primKey)