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