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 TypeMethodDescriptionvoid
void
getDocument
(Object object) getFacetBooleanFilter
(String className, SearchContext searchContext) getFullQuery
(SearchContext searchContext) String[]
getSortField
(String orderByCol) getSummary
(Document document, String snippet, PortletRequest portletRequest, PortletResponse portletResponse) boolean
hasPermission
(PermissionChecker permissionChecker, String entryClassName, long entryClassPK, String actionId) boolean
boolean
Returntrue
if the indexer participates in post-search result filtering.boolean
boolean
Returnstrue
if the indexer adds permission related filters to the search query prior to executionboolean
boolean
isVisible
(long classPK, int status) void
postProcessContextBooleanFilter
(BooleanFilter contextBooleanFilter, SearchContext searchContext) void
postProcessContextQuery
(BooleanQuery contextQuery, SearchContext searchContext) Deprecated.void
postProcessSearchQuery
(BooleanQuery searchQuery, BooleanFilter fullQueryBooleanFilter, SearchContext searchContext) void
postProcessSearchQuery
(BooleanQuery searchQuery, SearchContext searchContext) Deprecated.As of Wilberforce (7.0.x), replaced bypostProcessSearchQuery(BooleanQuery, BooleanFilter, SearchContext)
void
void
void
void
reindex
(Collection<Object> objects) search
(SearchContext searchContext) search
(SearchContext searchContext, String... selectedFieldNames) long
searchCount
(SearchContext searchContext) void
setIndexerEnabled
(boolean indexerEnabled) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.search.Indexer
getCompanyId, getSummary, reindex
-
Constructor Details
-
DummyIndexer
public DummyIndexer()
-
-
Method Details
-
delete
-
delete
-
getClassName
- Specified by:
getClassName
in interfaceIndexer<Object>
-
getDocument
- Specified by:
getDocument
in interfaceIndexer<Object>
-
getFacetBooleanFilter
- Specified by:
getFacetBooleanFilter
in interfaceIndexer<Object>
-
getFullQuery
- Specified by:
getFullQuery
in interfaceIndexer<Object>
-
getIndexerPostProcessors
- Specified by:
getIndexerPostProcessors
in interfaceIndexer<Object>
-
getSearchClassNames
- Specified by:
getSearchClassNames
in interfaceIndexer<Object>
-
getSortField
- Specified by:
getSortField
in interfaceIndexer<Object>
-
getSummary
public Summary getSummary(Document document, String snippet, PortletRequest portletRequest, PortletResponse portletResponse) - Specified by:
getSummary
in interfaceIndexer<Object>
-
hasPermission
public boolean hasPermission(PermissionChecker permissionChecker, String entryClassName, long entryClassPK, String actionId) - Specified by:
hasPermission
in interfaceIndexer<Object>
-
isCommitImmediately
public boolean isCommitImmediately()- Specified by:
isCommitImmediately
in interfaceIndexer<Object>
-
isFilterSearch
public boolean isFilterSearch()Description copied from interface:Indexer
Returntrue
if the indexer participates in post-search result filtering.- Specified by:
isFilterSearch
in interfaceIndexer<Object>
- Returns:
true
if the indexer participates in post-search result filtering;false
otherwise- See Also:
-
isIndexerEnabled
public boolean isIndexerEnabled()- Specified by:
isIndexerEnabled
in interfaceIndexer<Object>
-
isPermissionAware
public boolean isPermissionAware()Description copied from interface:Indexer
Returnstrue
if the indexer adds permission related filters to the search query prior to execution- Specified by:
isPermissionAware
in interfaceIndexer<Object>
- Returns:
true
if the indexer adds permission related filters to the search query prior to execution;false
otherwise- See Also:
-
isStagingAware
public boolean isStagingAware()- Specified by:
isStagingAware
in interfaceIndexer<Object>
-
isVisible
-
postProcessContextBooleanFilter
public void postProcessContextBooleanFilter(BooleanFilter contextBooleanFilter, SearchContext searchContext) throws Exception - Specified by:
postProcessContextBooleanFilter
in 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:
postProcessContextQuery
in interfaceIndexer<Object>
-
postProcessSearchQuery
public void postProcessSearchQuery(BooleanQuery searchQuery, BooleanFilter fullQueryBooleanFilter, SearchContext searchContext) - Specified by:
postProcessSearchQuery
in 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:
postProcessSearchQuery
in interfaceIndexer<Object>
-
reindex
-
reindex
-
reindex
-
reindex
-
search
-
search
-
searchCount
- Specified by:
searchCount
in interfaceIndexer<Object>
-
setIndexerEnabled
public void setIndexerEnabled(boolean indexerEnabled) - Specified by:
setIndexerEnabled
in interfaceIndexer<Object>
-
postProcessContextBooleanFilter(BooleanFilter, SearchContext)