com.liferay.portal.kernel.search
Class IndexerWrapper
java.lang.Object
com.liferay.portal.kernel.search.IndexerWrapper
- All Implemented Interfaces:
- Indexer
public class IndexerWrapper
- extends Object
- implements Indexer
Method Summary |
void |
addRelatedEntryFields(Document document,
Object obj)
|
void |
delete(long companyId,
String uid)
|
void |
delete(Object obj)
|
String[] |
getClassNames()
|
Document |
getDocument(Object obj)
|
BooleanQuery |
getFacetQuery(String className,
SearchContext searchContext)
|
BooleanQuery |
getFullQuery(SearchContext searchContext)
|
IndexerPostProcessor[] |
getIndexerPostProcessors()
|
String |
getPortletId()
|
String |
getSearchEngineId()
|
String |
getSortField(String orderByCol)
|
String |
getSortField(String orderByCol,
int sortType)
|
Summary |
getSummary(Document document,
Locale locale,
String snippet,
PortletURL portletURL)
|
boolean |
hasPermission(PermissionChecker permissionChecker,
String entryClassName,
long entryClassPK,
String actionId)
|
boolean |
isFilterSearch()
|
boolean |
isPermissionAware()
|
boolean |
isStagingAware()
|
boolean |
isVisible(long classPK,
int status)
|
boolean |
isVisibleRelatedEntry(long classPK,
int status)
|
void |
postProcessContextQuery(BooleanQuery contextQuery,
SearchContext searchContext)
|
void |
postProcessSearchQuery(BooleanQuery searchQuery,
SearchContext searchContext)
|
void |
registerIndexerPostProcessor(IndexerPostProcessor indexerPostProcessor)
|
void |
reindex(Object obj)
|
void |
reindex(String[] ids)
|
void |
reindex(String className,
long classPK)
|
void |
reindexDDMStructures(List<Long> ddmStructureIds)
|
Hits |
search(SearchContext searchContext)
|
void |
unregisterIndexerPostProcessor(IndexerPostProcessor indexerPostProcessor)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IndexerWrapper
public IndexerWrapper(Indexer indexer)
addRelatedEntryFields
public void addRelatedEntryFields(Document document,
Object obj)
throws Exception
- Specified by:
addRelatedEntryFields
in interface Indexer
- Throws:
Exception
delete
public void delete(long companyId,
String uid)
throws SearchException
- Specified by:
delete
in interface Indexer
- Throws:
SearchException
delete
public void delete(Object obj)
throws SearchException
- Specified by:
delete
in interface Indexer
- Throws:
SearchException
getClassNames
public String[] getClassNames()
- Specified by:
getClassNames
in interface Indexer
getDocument
public Document getDocument(Object obj)
throws SearchException
- Specified by:
getDocument
in interface Indexer
- Throws:
SearchException
getFacetQuery
public BooleanQuery getFacetQuery(String className,
SearchContext searchContext)
throws Exception
- Specified by:
getFacetQuery
in interface Indexer
- Throws:
Exception
getFullQuery
public BooleanQuery getFullQuery(SearchContext searchContext)
throws SearchException
- Specified by:
getFullQuery
in interface Indexer
- Throws:
SearchException
getIndexerPostProcessors
public IndexerPostProcessor[] getIndexerPostProcessors()
- Specified by:
getIndexerPostProcessors
in interface Indexer
getPortletId
public String getPortletId()
- Specified by:
getPortletId
in interface Indexer
getSearchEngineId
public String getSearchEngineId()
- Specified by:
getSearchEngineId
in interface Indexer
getSortField
public String getSortField(String orderByCol)
- Specified by:
getSortField
in interface Indexer
getSortField
public String getSortField(String orderByCol,
int sortType)
- Specified by:
getSortField
in interface Indexer
getSummary
public Summary getSummary(Document document,
Locale locale,
String snippet,
PortletURL portletURL)
throws SearchException
- Specified by:
getSummary
in interface Indexer
- Throws:
SearchException
hasPermission
public boolean hasPermission(PermissionChecker permissionChecker,
String entryClassName,
long entryClassPK,
String actionId)
throws Exception
- Specified by:
hasPermission
in interface Indexer
- Throws:
Exception
isFilterSearch
public boolean isFilterSearch()
- Specified by:
isFilterSearch
in interface Indexer
isPermissionAware
public boolean isPermissionAware()
- Specified by:
isPermissionAware
in interface Indexer
isStagingAware
public boolean isStagingAware()
- Specified by:
isStagingAware
in interface Indexer
isVisible
public boolean isVisible(long classPK,
int status)
throws Exception
- Specified by:
isVisible
in interface Indexer
- Throws:
Exception
isVisibleRelatedEntry
public boolean isVisibleRelatedEntry(long classPK,
int status)
throws Exception
- Specified by:
isVisibleRelatedEntry
in interface Indexer
- Throws:
Exception
postProcessContextQuery
public void postProcessContextQuery(BooleanQuery contextQuery,
SearchContext searchContext)
throws Exception
- Specified by:
postProcessContextQuery
in interface Indexer
- Throws:
Exception
postProcessSearchQuery
public void postProcessSearchQuery(BooleanQuery searchQuery,
SearchContext searchContext)
throws Exception
- Specified by:
postProcessSearchQuery
in interface Indexer
- Throws:
Exception
registerIndexerPostProcessor
public void registerIndexerPostProcessor(IndexerPostProcessor indexerPostProcessor)
- Specified by:
registerIndexerPostProcessor
in interface Indexer
reindex
public void reindex(Object obj)
throws SearchException
- Specified by:
reindex
in interface Indexer
- Throws:
SearchException
reindex
public void reindex(String className,
long classPK)
throws SearchException
- Specified by:
reindex
in interface Indexer
- Throws:
SearchException
reindex
public void reindex(String[] ids)
throws SearchException
- Specified by:
reindex
in interface Indexer
- Throws:
SearchException
reindexDDMStructures
public void reindexDDMStructures(List<Long> ddmStructureIds)
throws SearchException
- Specified by:
reindexDDMStructures
in interface Indexer
- Throws:
SearchException
search
public Hits search(SearchContext searchContext)
throws SearchException
- Specified by:
search
in interface Indexer
- Throws:
SearchException
unregisterIndexerPostProcessor
public void unregisterIndexerPostProcessor(IndexerPostProcessor indexerPostProcessor)
- Specified by:
unregisterIndexerPostProcessor
in interface Indexer