com.liferay.portal.kernel.search.IndexWriterHelper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.portal.kernel Show documentation
Show all versions of com.liferay.portal.kernel Show documentation
Contains interfaces for the portal services. Interfaces are only loaded by the global class loader and are shared by all plugins.
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.liferay.portal.kernel.search;
import aQute.bnd.annotation.ProviderType;
import com.liferay.portal.kernel.backgroundtask.BackgroundTask;
import java.io.Serializable;
import java.util.Collection;
import java.util.Locale;
import java.util.Map;
/**
* @author Michael C. Han
*/
@ProviderType
public interface IndexWriterHelper {
public void addDocument(
String searchEngineId, long companyId, Document document,
boolean commitImmediately)
throws SearchException;
public void addDocuments(
String searchEngineId, long companyId,
Collection documents, boolean commitImmediately)
throws SearchException;
public void commit(String searchEngineId) throws SearchException;
public void commit(String searchEngineId, long companyId)
throws SearchException;
public void deleteDocument(
String searchEngineId, long companyId, String uid,
boolean commitImmediately)
throws SearchException;
public void deleteDocuments(
String searchEngineId, long companyId, Collection uids,
boolean commitImmediately)
throws SearchException;
public void deleteEntityDocuments(
String searchEngineId, long companyId, String className,
boolean commitImmediately)
throws SearchException;
public int getReindexTaskCount(long groupId, boolean completed)
throws SearchException;
public void indexKeyword(
long companyId, String querySuggestion, float weight,
String keywordType, Locale locale)
throws SearchException;
public void indexKeyword(
String searchEngineId, long companyId, String querySuggestion,
float weight, String keywordType, Locale locale)
throws SearchException;
public void indexQuerySuggestionDictionaries(long companyId)
throws SearchException;
public void indexQuerySuggestionDictionaries(
String searchEngineId, long companyId)
throws SearchException;
public void indexQuerySuggestionDictionary(long companyId, Locale locale)
throws SearchException;
public void indexQuerySuggestionDictionary(
String searchEngineId, long companyId, Locale locale)
throws SearchException;
public void indexSpellCheckerDictionaries(long companyId)
throws SearchException;
public void indexSpellCheckerDictionaries(
String searchEngineId, long companyId)
throws SearchException;
public void indexSpellCheckerDictionary(long companyId, Locale locale)
throws SearchException;
public void indexSpellCheckerDictionary(
String searchEngineId, long companyId, Locale locale)
throws SearchException;
/**
* @deprecated As of 7.0.0, replaced by {@link
* com.liferay.portal.search.index.IndexStatusManager#
* isIndexReadOnly}
*/
@Deprecated
public boolean isIndexReadOnly();
public void partiallyUpdateDocument(
String searchEngineId, long companyId, Document document,
boolean commitImmediately)
throws SearchException;
public void partiallyUpdateDocuments(
String searchEngineId, long companyId,
Collection documents, boolean commitImmediately)
throws SearchException;
public BackgroundTask reindex(
long userId, String jobName, long[] companyIds,
Map taskContextMap)
throws SearchException;
public BackgroundTask reindex(
long userId, String jobName, long[] companyIds, String className,
Map taskContextMap)
throws SearchException;
/**
* @deprecated As of 7.0.0, replaced by {@link
* com.liferay.portal.search.index.IndexStatusManager#
* setIndexReadOnly(boolean)}
*/
@Deprecated
public void setIndexReadOnly(boolean indexReadOnly);
public void updateDocument(
String searchEngineId, long companyId, Document document,
boolean commitImmediately)
throws SearchException;
public void updateDocuments(
String searchEngineId, long companyId,
Collection documents, boolean commitImmediately)
throws SearchException;
public void updatePermissionFields(String name, String primKey);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy