com.liferay.portal.kernel.search
Class IndexWriterHelperUtil
java.lang.Object
com.liferay.portal.kernel.search.IndexWriterHelperUtil
public class IndexWriterHelperUtil
- extends Object
|
Method Summary |
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()
|
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)
|
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IndexWriterHelperUtil
public IndexWriterHelperUtil()
addDocument
public static void addDocument(String searchEngineId,
long companyId,
Document document,
boolean commitImmediately)
throws SearchException
- Throws:
SearchException
addDocuments
public static void addDocuments(String searchEngineId,
long companyId,
Collection<Document> documents,
boolean commitImmediately)
throws SearchException
- Throws:
SearchException
commit
public static void commit(String searchEngineId)
throws SearchException
- Throws:
SearchException
commit
public static void commit(String searchEngineId,
long companyId)
throws SearchException
- Throws:
SearchException
deleteDocument
public static void deleteDocument(String searchEngineId,
long companyId,
String uid,
boolean commitImmediately)
throws SearchException
- Throws:
SearchException
deleteDocuments
public static void deleteDocuments(String searchEngineId,
long companyId,
Collection<String> uids,
boolean commitImmediately)
throws SearchException
- Throws:
SearchException
deleteEntityDocuments
public static void deleteEntityDocuments(String searchEngineId,
long companyId,
String className,
boolean commitImmediately)
throws SearchException
- Throws:
SearchException
getReindexTaskCount
public static int getReindexTaskCount(long groupId,
boolean completed)
throws SearchException
- Throws:
SearchException
indexKeyword
public static void indexKeyword(long companyId,
String querySuggestion,
float weight,
String keywordType,
Locale locale)
throws SearchException
- Throws:
SearchException
indexKeyword
public static void indexKeyword(String searchEngineId,
long companyId,
String querySuggestion,
float weight,
String keywordType,
Locale locale)
throws SearchException
- Throws:
SearchException
indexQuerySuggestionDictionaries
public static void indexQuerySuggestionDictionaries(long companyId)
throws SearchException
- Throws:
SearchException
indexQuerySuggestionDictionaries
public static void indexQuerySuggestionDictionaries(String searchEngineId,
long companyId)
throws SearchException
- Throws:
SearchException
indexQuerySuggestionDictionary
public static void indexQuerySuggestionDictionary(long companyId,
Locale locale)
throws SearchException
- Throws:
SearchException
indexQuerySuggestionDictionary
public static void indexQuerySuggestionDictionary(String searchEngineId,
long companyId,
Locale locale)
throws SearchException
- Throws:
SearchException
indexSpellCheckerDictionaries
public static void indexSpellCheckerDictionaries(long companyId)
throws SearchException
- Throws:
SearchException
indexSpellCheckerDictionaries
public static void indexSpellCheckerDictionaries(String searchEngineId,
long companyId)
throws SearchException
- Throws:
SearchException
indexSpellCheckerDictionary
public static void indexSpellCheckerDictionary(long companyId,
Locale locale)
throws SearchException
- Throws:
SearchException
indexSpellCheckerDictionary
public static void indexSpellCheckerDictionary(String searchEngineId,
long companyId,
Locale locale)
throws SearchException
- Throws:
SearchException
isIndexReadOnly
public static boolean isIndexReadOnly()
partiallyUpdateDocument
public static void partiallyUpdateDocument(String searchEngineId,
long companyId,
Document document,
boolean commitImmediately)
throws SearchException
- Throws:
SearchException
partiallyUpdateDocuments
public static void partiallyUpdateDocuments(String searchEngineId,
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
public static void setIndexReadOnly(boolean indexReadOnly)
updateDocument
public static void updateDocument(String searchEngineId,
long companyId,
Document document,
boolean commitImmediately)
throws SearchException
- Throws:
SearchException
updateDocuments
public static void updateDocuments(String searchEngineId,
long companyId,
Collection<Document> documents,
boolean commitImmediately)
throws SearchException
- Throws:
SearchException
updatePermissionFields
public static void updatePermissionFields(String name,
String primKey)