com.liferay.portal.kernel.search.dummy
Class DummyIndexer
java.lang.Object
com.liferay.portal.kernel.search.dummy.DummyIndexer
- All Implemented Interfaces:
- Indexer<Object>
public class DummyIndexer
- extends Object
- implements Indexer<Object>
|
Method Summary |
void |
delete(long companyId,
String uid)
|
void |
delete(Object object)
|
String |
getClassName()
|
String[] |
getClassNames()
Deprecated. As of 7.0.0, replaced by getSearchClassNames() |
Document |
getDocument(Object object)
|
BooleanFilter |
getFacetBooleanFilter(String className,
SearchContext searchContext)
|
BooleanQuery |
getFullQuery(SearchContext searchContext)
|
IndexerPostProcessor[] |
getIndexerPostProcessors()
|
String |
getPortletId()
Deprecated. As of 7.0.0, replaced by getClassName() |
String[] |
getSearchClassNames()
|
String |
getSearchEngineId()
|
String |
getSortField(String orderByCol)
|
String |
getSortField(String orderByCol,
int sortType)
|
Summary |
getSummary(Document document,
Locale locale,
String snippet)
Deprecated. As of 7.0.0, replaced by getSummary(Document, String,
PortletRequest, PortletResponse) |
Summary |
getSummary(Document document,
String snippet,
PortletRequest portletRequest,
PortletResponse portletResponse)
|
boolean |
hasPermission(PermissionChecker permissionChecker,
String entryClassName,
long entryClassPK,
String actionId)
|
boolean |
isCommitImmediately()
|
boolean |
isFilterSearch()
Return true if the indexer participates in post-search
result filtering. |
boolean |
isIndexerEnabled()
|
boolean |
isPermissionAware()
Returns true if the indexer adds permission related filters
to the search query prior to execution |
boolean |
isStagingAware()
|
boolean |
isVisible(long classPK,
int status)
|
boolean |
isVisibleRelatedEntry(long classPK,
int status)
|
void |
postProcessContextBooleanFilter(BooleanFilter contextBooleanFilter,
SearchContext searchContext)
|
void |
postProcessContextQuery(BooleanQuery contextQuery,
SearchContext searchContext)
Deprecated. As of 7.0.0, replaced by postProcessContextBooleanFilter(BooleanFilter,
SearchContext) |
void |
postProcessSearchQuery(BooleanQuery searchQuery,
BooleanFilter fullQueryBooleanFilter,
SearchContext searchContext)
|
void |
postProcessSearchQuery(BooleanQuery searchQuery,
SearchContext searchContext)
Deprecated. As of 7.0.0, replaced by postProcessSearchQuery(BooleanQuery, BooleanFilter,
SearchContext) |
void |
registerIndexerPostProcessor(IndexerPostProcessor indexerPostProcessor)
|
void |
reindex(Collection<Object> objects)
|
void |
reindex(Object obj)
|
void |
reindex(String[] ids)
|
void |
reindex(String className,
long classPK)
|
Hits |
search(SearchContext searchContext)
|
Hits |
search(SearchContext searchContext,
String... selectedFieldNames)
|
long |
searchCount(SearchContext searchContext)
|
void |
setIndexerEnabled(boolean indexerEnabled)
|
void |
unregisterIndexerPostProcessor(IndexerPostProcessor indexerPostProcessor)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DummyIndexer
public DummyIndexer()
delete
public void delete(long companyId,
String uid)
- Specified by:
delete in interface Indexer<Object>
delete
public void delete(Object object)
- Specified by:
delete in interface Indexer<Object>
getClassName
public String getClassName()
- Specified by:
getClassName in interface Indexer<Object>
getClassNames
@Deprecated
public String[] getClassNames()
- Deprecated. As of 7.0.0, replaced by
getSearchClassNames()
- Specified by:
getClassNames in interface Indexer<Object>
getDocument
public Document getDocument(Object object)
- Specified by:
getDocument in interface Indexer<Object>
getFacetBooleanFilter
public BooleanFilter getFacetBooleanFilter(String className,
SearchContext searchContext)
- Specified by:
getFacetBooleanFilter in interface Indexer<Object>
getFullQuery
public BooleanQuery getFullQuery(SearchContext searchContext)
- Specified by:
getFullQuery in interface Indexer<Object>
getIndexerPostProcessors
public IndexerPostProcessor[] getIndexerPostProcessors()
- Specified by:
getIndexerPostProcessors in interface Indexer<Object>
getPortletId
@Deprecated
public String getPortletId()
- Deprecated. As of 7.0.0, replaced by
getClassName()
- Specified by:
getPortletId in interface Indexer<Object>
getSearchClassNames
public String[] getSearchClassNames()
- Specified by:
getSearchClassNames in interface Indexer<Object>
getSearchEngineId
public String getSearchEngineId()
- Specified by:
getSearchEngineId in interface Indexer<Object>
getSortField
public String getSortField(String orderByCol)
- Specified by:
getSortField in interface Indexer<Object>
getSortField
public String getSortField(String orderByCol,
int sortType)
- Specified by:
getSortField in interface Indexer<Object>
getSummary
@Deprecated
public Summary getSummary(Document document,
Locale locale,
String snippet)
- Deprecated. As of 7.0.0, replaced by
getSummary(Document, String,
PortletRequest, PortletResponse)
- Specified by:
getSummary in interface Indexer<Object>
getSummary
public Summary getSummary(Document document,
String snippet,
PortletRequest portletRequest,
PortletResponse portletResponse)
- Specified by:
getSummary in interface Indexer<Object>
hasPermission
public boolean hasPermission(PermissionChecker permissionChecker,
String entryClassName,
long entryClassPK,
String actionId)
- Specified by:
hasPermission in interface Indexer<Object>
isCommitImmediately
public boolean isCommitImmediately()
- Specified by:
isCommitImmediately in interface Indexer<Object>
isFilterSearch
public boolean isFilterSearch()
- Description copied from interface:
Indexer
- Return
true if the indexer participates in post-search
result filtering.
- Specified by:
isFilterSearch in interface Indexer<Object>
- Returns:
true if the indexer participates in post-search
result filtering; false otherwise- See Also:
SearchResultPermissionFilter
isIndexerEnabled
public boolean isIndexerEnabled()
- Specified by:
isIndexerEnabled in interface Indexer<Object>
isPermissionAware
public boolean isPermissionAware()
- Description copied from interface:
Indexer
- Returns
true if the indexer adds permission related filters
to the search query prior to execution
- Specified by:
isPermissionAware in interface Indexer<Object>
- Returns:
true if the indexer adds permission related filters
to the search query prior to execution; false
otherwise- See Also:
SearchPermissionChecker
isStagingAware
public boolean isStagingAware()
- Specified by:
isStagingAware in interface Indexer<Object>
isVisible
public boolean isVisible(long classPK,
int status)
throws Exception
- Specified by:
isVisible in interface Indexer<Object>
- Throws:
Exception
isVisibleRelatedEntry
public boolean isVisibleRelatedEntry(long classPK,
int status)
throws Exception
- Specified by:
isVisibleRelatedEntry in interface Indexer<Object>
- Throws:
Exception
postProcessContextBooleanFilter
public void postProcessContextBooleanFilter(BooleanFilter contextBooleanFilter,
SearchContext searchContext)
throws Exception
- Specified by:
postProcessContextBooleanFilter in interface Indexer<Object>
- Throws:
Exception
postProcessContextQuery
@Deprecated
public void postProcessContextQuery(BooleanQuery contextQuery,
SearchContext searchContext)
- Deprecated. As of 7.0.0, replaced by
postProcessContextBooleanFilter(BooleanFilter,
SearchContext)
- Specified by:
postProcessContextQuery in interface Indexer<Object>
postProcessSearchQuery
public void postProcessSearchQuery(BooleanQuery searchQuery,
BooleanFilter fullQueryBooleanFilter,
SearchContext searchContext)
- Specified by:
postProcessSearchQuery in interface Indexer<Object>
postProcessSearchQuery
@Deprecated
public void postProcessSearchQuery(BooleanQuery searchQuery,
SearchContext searchContext)
- Deprecated. As of 7.0.0, replaced by
postProcessSearchQuery(BooleanQuery, BooleanFilter,
SearchContext)
- Specified by:
postProcessSearchQuery in interface Indexer<Object>
registerIndexerPostProcessor
public void registerIndexerPostProcessor(IndexerPostProcessor indexerPostProcessor)
- Specified by:
registerIndexerPostProcessor in interface Indexer<Object>
reindex
public void reindex(Collection<Object> objects)
- Specified by:
reindex in interface Indexer<Object>
reindex
public void reindex(Object obj)
- Specified by:
reindex in interface Indexer<Object>
reindex
public void reindex(String className,
long classPK)
- Specified by:
reindex in interface Indexer<Object>
reindex
public void reindex(String[] ids)
- Specified by:
reindex in interface Indexer<Object>
search
public Hits search(SearchContext searchContext)
- Specified by:
search in interface Indexer<Object>
search
public Hits search(SearchContext searchContext,
String... selectedFieldNames)
- Specified by:
search in interface Indexer<Object>
searchCount
public long searchCount(SearchContext searchContext)
- Specified by:
searchCount in interface Indexer<Object>
setIndexerEnabled
public void setIndexerEnabled(boolean indexerEnabled)
- Specified by:
setIndexerEnabled in interface Indexer<Object>
unregisterIndexerPostProcessor
public void unregisterIndexerPostProcessor(IndexerPostProcessor indexerPostProcessor)
- Specified by:
unregisterIndexerPostProcessor in interface Indexer<Object>