public class NoAutoCommitIndexer<T>
extends java.lang.Object
implements com.liferay.portal.kernel.search.Indexer<T>
Constructor and Description |
---|
NoAutoCommitIndexer(com.liferay.portal.kernel.search.Indexer<T> indexer) |
Modifier and Type | Method and Description |
---|---|
void |
delete(long companyId,
java.lang.String uid) |
void |
delete(T object) |
boolean |
equals(java.lang.Object object) |
java.lang.String |
getClassName() |
java.lang.String[] |
getClassNames()
Deprecated.
As of 3.3.0, replaced by
getSearchClassNames() |
com.liferay.portal.kernel.search.Document |
getDocument(T object) |
com.liferay.portal.kernel.search.filter.BooleanFilter |
getFacetBooleanFilter(java.lang.String className,
com.liferay.portal.kernel.search.SearchContext searchContext) |
com.liferay.portal.kernel.search.BooleanQuery |
getFullQuery(com.liferay.portal.kernel.search.SearchContext searchContext) |
com.liferay.portal.kernel.search.IndexerPostProcessor[] |
getIndexerPostProcessors() |
java.lang.String |
getPortletId()
Deprecated.
As of 3.3.0, replaced by
getClassName() |
java.lang.String[] |
getSearchClassNames() |
java.lang.String |
getSearchEngineId() |
java.lang.String |
getSortField(java.lang.String orderByCol) |
java.lang.String |
getSortField(java.lang.String orderByCol,
int sortType) |
com.liferay.portal.kernel.search.Summary |
getSummary(com.liferay.portal.kernel.search.Document document,
java.util.Locale locale,
java.lang.String snippet)
Deprecated.
As of 3.3.0, replaced by
getSummary(Document, String,
PortletRequest, PortletResponse) |
com.liferay.portal.kernel.search.Summary |
getSummary(com.liferay.portal.kernel.search.Document document,
java.lang.String snippet,
javax.portlet.PortletRequest portletRequest,
javax.portlet.PortletResponse portletResponse) |
int |
hashCode() |
boolean |
hasPermission(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker,
java.lang.String entryClassName,
long entryClassPK,
java.lang.String actionId) |
boolean |
isCommitImmediately() |
boolean |
isFilterSearch() |
boolean |
isIndexerEnabled() |
boolean |
isPermissionAware() |
boolean |
isStagingAware() |
boolean |
isVisible(long classPK,
int status) |
boolean |
isVisibleRelatedEntry(long classPK,
int status) |
void |
postProcessContextBooleanFilter(com.liferay.portal.kernel.search.filter.BooleanFilter contextBooleanFilter,
com.liferay.portal.kernel.search.SearchContext searchContext) |
void |
postProcessContextQuery(com.liferay.portal.kernel.search.BooleanQuery contextQuery,
com.liferay.portal.kernel.search.SearchContext searchContext)
Deprecated.
As of 3.3.0, replaced by
postProcessContextBooleanFilter(BooleanFilter,
SearchContext) |
void |
postProcessSearchQuery(com.liferay.portal.kernel.search.BooleanQuery searchQuery,
com.liferay.portal.kernel.search.filter.BooleanFilter fullQueryBooleanFilter,
com.liferay.portal.kernel.search.SearchContext searchContext) |
void |
postProcessSearchQuery(com.liferay.portal.kernel.search.BooleanQuery searchQuery,
com.liferay.portal.kernel.search.SearchContext searchContext)
Deprecated.
As of 3.3.0, replaced by
postProcessSearchQuery(BooleanQuery, BooleanFilter,
SearchContext) |
void |
registerIndexerPostProcessor(com.liferay.portal.kernel.search.IndexerPostProcessor indexerPostProcessor) |
void |
reindex(java.util.Collection<T> objects) |
void |
reindex(java.lang.String[] ids) |
void |
reindex(java.lang.String className,
long classPK) |
void |
reindex(T object) |
com.liferay.portal.kernel.search.Hits |
search(com.liferay.portal.kernel.search.SearchContext searchContext) |
com.liferay.portal.kernel.search.Hits |
search(com.liferay.portal.kernel.search.SearchContext searchContext,
java.lang.String... selectedFieldNames) |
long |
searchCount(com.liferay.portal.kernel.search.SearchContext searchContext) |
void |
setIndexerEnabled(boolean indexerEnabled) |
void |
unregisterIndexerPostProcessor(com.liferay.portal.kernel.search.IndexerPostProcessor indexerPostProcessor) |
public NoAutoCommitIndexer(com.liferay.portal.kernel.search.Indexer<T> indexer)
public void delete(long companyId, java.lang.String uid) throws com.liferay.portal.kernel.search.SearchException
delete
in interface com.liferay.portal.kernel.search.Indexer<T>
com.liferay.portal.kernel.search.SearchException
public void delete(T object) throws com.liferay.portal.kernel.search.SearchException
delete
in interface com.liferay.portal.kernel.search.Indexer<T>
com.liferay.portal.kernel.search.SearchException
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public java.lang.String getClassName()
getClassName
in interface com.liferay.portal.kernel.search.Indexer<T>
@Deprecated public java.lang.String[] getClassNames()
getSearchClassNames()
getClassNames
in interface com.liferay.portal.kernel.search.Indexer<T>
public com.liferay.portal.kernel.search.Document getDocument(T object) throws com.liferay.portal.kernel.search.SearchException
getDocument
in interface com.liferay.portal.kernel.search.Indexer<T>
com.liferay.portal.kernel.search.SearchException
public com.liferay.portal.kernel.search.filter.BooleanFilter getFacetBooleanFilter(java.lang.String className, com.liferay.portal.kernel.search.SearchContext searchContext) throws java.lang.Exception
getFacetBooleanFilter
in interface com.liferay.portal.kernel.search.Indexer<T>
java.lang.Exception
public com.liferay.portal.kernel.search.BooleanQuery getFullQuery(com.liferay.portal.kernel.search.SearchContext searchContext) throws com.liferay.portal.kernel.search.SearchException
getFullQuery
in interface com.liferay.portal.kernel.search.Indexer<T>
com.liferay.portal.kernel.search.SearchException
public com.liferay.portal.kernel.search.IndexerPostProcessor[] getIndexerPostProcessors()
getIndexerPostProcessors
in interface com.liferay.portal.kernel.search.Indexer<T>
@Deprecated public java.lang.String getPortletId()
getClassName()
getPortletId
in interface com.liferay.portal.kernel.search.Indexer<T>
public java.lang.String[] getSearchClassNames()
getSearchClassNames
in interface com.liferay.portal.kernel.search.Indexer<T>
public java.lang.String getSearchEngineId()
getSearchEngineId
in interface com.liferay.portal.kernel.search.Indexer<T>
public java.lang.String getSortField(java.lang.String orderByCol)
getSortField
in interface com.liferay.portal.kernel.search.Indexer<T>
public java.lang.String getSortField(java.lang.String orderByCol, int sortType)
getSortField
in interface com.liferay.portal.kernel.search.Indexer<T>
@Deprecated public com.liferay.portal.kernel.search.Summary getSummary(com.liferay.portal.kernel.search.Document document, java.util.Locale locale, java.lang.String snippet) throws com.liferay.portal.kernel.search.SearchException
getSummary(Document, String,
PortletRequest, PortletResponse)
getSummary
in interface com.liferay.portal.kernel.search.Indexer<T>
com.liferay.portal.kernel.search.SearchException
public com.liferay.portal.kernel.search.Summary getSummary(com.liferay.portal.kernel.search.Document document, java.lang.String snippet, javax.portlet.PortletRequest portletRequest, javax.portlet.PortletResponse portletResponse) throws com.liferay.portal.kernel.search.SearchException
getSummary
in interface com.liferay.portal.kernel.search.Indexer<T>
com.liferay.portal.kernel.search.SearchException
public int hashCode()
hashCode
in class java.lang.Object
public boolean hasPermission(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker, java.lang.String entryClassName, long entryClassPK, java.lang.String actionId) throws java.lang.Exception
hasPermission
in interface com.liferay.portal.kernel.search.Indexer<T>
java.lang.Exception
public boolean isCommitImmediately()
isCommitImmediately
in interface com.liferay.portal.kernel.search.Indexer<T>
public boolean isFilterSearch()
isFilterSearch
in interface com.liferay.portal.kernel.search.Indexer<T>
public boolean isIndexerEnabled()
isIndexerEnabled
in interface com.liferay.portal.kernel.search.Indexer<T>
public boolean isPermissionAware()
isPermissionAware
in interface com.liferay.portal.kernel.search.Indexer<T>
public boolean isStagingAware()
isStagingAware
in interface com.liferay.portal.kernel.search.Indexer<T>
public boolean isVisible(long classPK, int status) throws java.lang.Exception
isVisible
in interface com.liferay.portal.kernel.search.Indexer<T>
java.lang.Exception
public boolean isVisibleRelatedEntry(long classPK, int status) throws java.lang.Exception
isVisibleRelatedEntry
in interface com.liferay.portal.kernel.search.Indexer<T>
java.lang.Exception
public void postProcessContextBooleanFilter(com.liferay.portal.kernel.search.filter.BooleanFilter contextBooleanFilter, com.liferay.portal.kernel.search.SearchContext searchContext) throws java.lang.Exception
postProcessContextBooleanFilter
in interface com.liferay.portal.kernel.search.Indexer<T>
java.lang.Exception
@Deprecated public void postProcessContextQuery(com.liferay.portal.kernel.search.BooleanQuery contextQuery, com.liferay.portal.kernel.search.SearchContext searchContext) throws java.lang.Exception
postProcessContextBooleanFilter(BooleanFilter,
SearchContext)
postProcessContextQuery
in interface com.liferay.portal.kernel.search.Indexer<T>
java.lang.Exception
public void postProcessSearchQuery(com.liferay.portal.kernel.search.BooleanQuery searchQuery, com.liferay.portal.kernel.search.filter.BooleanFilter fullQueryBooleanFilter, com.liferay.portal.kernel.search.SearchContext searchContext) throws java.lang.Exception
postProcessSearchQuery
in interface com.liferay.portal.kernel.search.Indexer<T>
java.lang.Exception
@Deprecated public void postProcessSearchQuery(com.liferay.portal.kernel.search.BooleanQuery searchQuery, com.liferay.portal.kernel.search.SearchContext searchContext) throws java.lang.Exception
postProcessSearchQuery(BooleanQuery, BooleanFilter,
SearchContext)
postProcessSearchQuery
in interface com.liferay.portal.kernel.search.Indexer<T>
java.lang.Exception
public void registerIndexerPostProcessor(com.liferay.portal.kernel.search.IndexerPostProcessor indexerPostProcessor)
registerIndexerPostProcessor
in interface com.liferay.portal.kernel.search.Indexer<T>
public void reindex(java.util.Collection<T> objects) throws com.liferay.portal.kernel.search.SearchException
reindex
in interface com.liferay.portal.kernel.search.Indexer<T>
com.liferay.portal.kernel.search.SearchException
public void reindex(java.lang.String className, long classPK) throws com.liferay.portal.kernel.search.SearchException
reindex
in interface com.liferay.portal.kernel.search.Indexer<T>
com.liferay.portal.kernel.search.SearchException
public void reindex(java.lang.String[] ids) throws com.liferay.portal.kernel.search.SearchException
reindex
in interface com.liferay.portal.kernel.search.Indexer<T>
com.liferay.portal.kernel.search.SearchException
public void reindex(T object) throws com.liferay.portal.kernel.search.SearchException
reindex
in interface com.liferay.portal.kernel.search.Indexer<T>
com.liferay.portal.kernel.search.SearchException
public com.liferay.portal.kernel.search.Hits search(com.liferay.portal.kernel.search.SearchContext searchContext) throws com.liferay.portal.kernel.search.SearchException
search
in interface com.liferay.portal.kernel.search.Indexer<T>
com.liferay.portal.kernel.search.SearchException
public com.liferay.portal.kernel.search.Hits search(com.liferay.portal.kernel.search.SearchContext searchContext, java.lang.String... selectedFieldNames) throws com.liferay.portal.kernel.search.SearchException
search
in interface com.liferay.portal.kernel.search.Indexer<T>
com.liferay.portal.kernel.search.SearchException
public long searchCount(com.liferay.portal.kernel.search.SearchContext searchContext) throws com.liferay.portal.kernel.search.SearchException
searchCount
in interface com.liferay.portal.kernel.search.Indexer<T>
com.liferay.portal.kernel.search.SearchException
public void setIndexerEnabled(boolean indexerEnabled)
setIndexerEnabled
in interface com.liferay.portal.kernel.search.Indexer<T>
public void unregisterIndexerPostProcessor(com.liferay.portal.kernel.search.IndexerPostProcessor indexerPostProcessor)
unregisterIndexerPostProcessor
in interface com.liferay.portal.kernel.search.Indexer<T>