com.liferay.portal.kernel.search.Indexer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of portal-service Show documentation
Show all versions of portal-service 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-2013 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 com.liferay.portal.security.permission.PermissionChecker;
import java.util.List;
import java.util.Locale;
import javax.portlet.PortletURL;
/**
* @author Brian Wing Shun Chan
* @author Raymond Augé
* @author Ryan Park
*/
public interface Indexer {
public static final int DEFAULT_INTERVAL = 10000;
public void addRelatedEntryFields(Document document, Object obj)
throws Exception;
public void delete(long companyId, String uid) throws SearchException;
public void delete(Object obj) throws SearchException;
public String[] getClassNames();
public Document getDocument(Object obj) throws SearchException;
public BooleanQuery getFacetQuery(
String className, SearchContext searchContext)
throws Exception;
public BooleanQuery getFullQuery(SearchContext searchContext)
throws SearchException;
public IndexerPostProcessor[] getIndexerPostProcessors();
public String getPortletId();
public String getSearchEngineId();
public String getSortField(String orderByCol);
public Summary getSummary(
Document document, Locale locale, String snippet,
PortletURL portletURL)
throws SearchException;
public boolean hasPermission(
PermissionChecker permissionChecker, String entryClassName,
long entryClassPK, String actionId)
throws Exception;
public boolean isFilterSearch();
public boolean isPermissionAware();
public boolean isStagingAware();
public void postProcessContextQuery(
BooleanQuery contextQuery, SearchContext searchContext)
throws Exception;
public void postProcessSearchQuery(
BooleanQuery searchQuery, SearchContext searchContext)
throws Exception;
public void registerIndexerPostProcessor(
IndexerPostProcessor indexerPostProcessor);
public void reindex(Object obj) throws SearchException;
public void reindex(String className, long classPK) throws SearchException;
public void reindex(String[] ids) throws SearchException;
public void reindexDDMStructures(List ddmStructureIds)
throws SearchException;
public Hits search(SearchContext searchContext) throws SearchException;
public void unregisterIndexerPostProcessor(
IndexerPostProcessor indexerPostProcessor);
}