Class DummyIndexer
Object
com.liferay.portal.kernel.search.dummy.DummyIndexer
- Author:
- Brian Wing Shun Chan
-
Field Summary
Fields inherited from interface com.liferay.portal.kernel.search.Indexer
DEFAULT_INTERVAL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidgetDocument(Object object) getFacetBooleanFilter(String className, SearchContext searchContext) getFullQuery(SearchContext searchContext) String[]getSortField(String orderByCol) getSummary(Document document, String snippet, PortletRequest portletRequest, PortletResponse portletResponse) booleanhasPermission(PermissionChecker permissionChecker, String entryClassName, long entryClassPK, String actionId) booleanbooleanReturntrueif the indexer participates in post-search result filtering.booleanbooleanReturnstrueif the indexer adds permission related filters to the search query prior to executionbooleanbooleanisVisible(long classPK, int status) voidpostProcessContextBooleanFilter(BooleanFilter contextBooleanFilter, SearchContext searchContext) voidpostProcessContextQuery(BooleanQuery contextQuery, SearchContext searchContext) Deprecated.voidpostProcessSearchQuery(BooleanQuery searchQuery, BooleanFilter fullQueryBooleanFilter, SearchContext searchContext) voidpostProcessSearchQuery(BooleanQuery searchQuery, SearchContext searchContext) Deprecated.As of Wilberforce (7.0.x), replaced bypostProcessSearchQuery(BooleanQuery, BooleanFilter, SearchContext)voidvoidvoidvoidreindex(Collection<Object> objects) search(SearchContext searchContext) search(SearchContext searchContext, String... selectedFieldNames) longsearchCount(SearchContext searchContext) voidsetIndexerEnabled(boolean indexerEnabled) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.liferay.portal.kernel.search.Indexer
getCompanyId, getSummary, reindex
-
Constructor Details
-
DummyIndexer
public DummyIndexer()
-
-
Method Details
-
delete
-
delete
-
getClassName
- Specified by:
getClassNamein interfaceIndexer<Object>
-
getDocument
- Specified by:
getDocumentin interfaceIndexer<Object>
-
getFacetBooleanFilter
- Specified by:
getFacetBooleanFilterin interfaceIndexer<Object>
-
getFullQuery
- Specified by:
getFullQueryin interfaceIndexer<Object>
-
getIndexerPostProcessors
- Specified by:
getIndexerPostProcessorsin interfaceIndexer<Object>
-
getSearchClassNames
- Specified by:
getSearchClassNamesin interfaceIndexer<Object>
-
getSortField
- Specified by:
getSortFieldin interfaceIndexer<Object>
-
getSummary
public Summary getSummary(Document document, String snippet, PortletRequest portletRequest, PortletResponse portletResponse) - Specified by:
getSummaryin interfaceIndexer<Object>
-
hasPermission
public boolean hasPermission(PermissionChecker permissionChecker, String entryClassName, long entryClassPK, String actionId) - Specified by:
hasPermissionin interfaceIndexer<Object>
-
isCommitImmediately
public boolean isCommitImmediately()- Specified by:
isCommitImmediatelyin interfaceIndexer<Object>
-
isFilterSearch
public boolean isFilterSearch()Description copied from interface:IndexerReturntrueif the indexer participates in post-search result filtering.- Specified by:
isFilterSearchin interfaceIndexer<Object>- Returns:
trueif the indexer participates in post-search result filtering;falseotherwise- See Also:
-
isIndexerEnabled
public boolean isIndexerEnabled()- Specified by:
isIndexerEnabledin interfaceIndexer<Object>
-
isPermissionAware
public boolean isPermissionAware()Description copied from interface:IndexerReturnstrueif the indexer adds permission related filters to the search query prior to execution- Specified by:
isPermissionAwarein interfaceIndexer<Object>- Returns:
trueif the indexer adds permission related filters to the search query prior to execution;falseotherwise- See Also:
-
isStagingAware
public boolean isStagingAware()- Specified by:
isStagingAwarein interfaceIndexer<Object>
-
isVisible
-
postProcessContextBooleanFilter
public void postProcessContextBooleanFilter(BooleanFilter contextBooleanFilter, SearchContext searchContext) throws Exception - Specified by:
postProcessContextBooleanFilterin interfaceIndexer<Object>- Throws:
Exception
-
postProcessContextQuery
@Deprecated public void postProcessContextQuery(BooleanQuery contextQuery, SearchContext searchContext) Deprecated.As of Wilberforce (7.0.x), replaced bypostProcessContextBooleanFilter(BooleanFilter, SearchContext)- Specified by:
postProcessContextQueryin interfaceIndexer<Object>
-
postProcessSearchQuery
public void postProcessSearchQuery(BooleanQuery searchQuery, BooleanFilter fullQueryBooleanFilter, SearchContext searchContext) - Specified by:
postProcessSearchQueryin interfaceIndexer<Object>
-
postProcessSearchQuery
@Deprecated public void postProcessSearchQuery(BooleanQuery searchQuery, SearchContext searchContext) Deprecated.As of Wilberforce (7.0.x), replaced bypostProcessSearchQuery(BooleanQuery, BooleanFilter, SearchContext)- Specified by:
postProcessSearchQueryin interfaceIndexer<Object>
-
reindex
-
reindex
-
reindex
-
reindex
-
search
-
search
-
searchCount
- Specified by:
searchCountin interfaceIndexer<Object>
-
setIndexerEnabled
public void setIndexerEnabled(boolean indexerEnabled) - Specified by:
setIndexerEnabledin interfaceIndexer<Object>
-
postProcessContextBooleanFilter(BooleanFilter, SearchContext)