Liferay 7.0-ce-m3

com.liferay.portal.kernel.search
Class BaseSearcher

java.lang.Object
  extended by com.liferay.portal.kernel.search.BaseIndexer
      extended by com.liferay.portal.kernel.search.BaseSearcher
All Implemented Interfaces:
Indexer
Direct Known Subclasses:
FacetedSearcher, FolderSearcher

public abstract class BaseSearcher
extends BaseIndexer


Field Summary
 
Fields inherited from interface com.liferay.portal.kernel.search.Indexer
DEFAULT_INTERVAL
 
Constructor Summary
BaseSearcher()
           
 
Method Summary
protected  void doDelete(Object obj)
           
protected  Document doGetDocument(Object obj)
           
protected  Summary doGetSummary(Document document, Locale locale, String snippet, PortletURL portletURL, PortletRequest portletRequest, PortletResponse portletResponse)
           
protected  void doReindex(Object obj)
           
protected  void doReindex(String[] ids)
           
protected  void doReindex(String className, long classPK)
           
 IndexerPostProcessor[] getIndexerPostProcessors()
           
 String getPortletId()
           
protected  String getPortletId(SearchContext searchContext)
           
 void postProcessSearchQuery(BooleanQuery searchQuery, SearchContext searchContext)
           
 void registerIndexerPostProcessor(IndexerPostProcessor indexerPostProcessor)
           
 
Methods inherited from class com.liferay.portal.kernel.search.BaseIndexer
addAssetFields, addDefaultHighlightFieldNames, addDefaultSelectedFieldNames, addFacetSelectedFieldNames, addLocalizedSearchTerm, addRelatedClassNames, addRelatedEntryFields, addSearchArrayQuery, addSearchAssetCategoryIds, addSearchAssetCategoryTitles, addSearchAssetTagNames, addSearchClassTypeIds, addSearchDDMStruture, addSearchEntryClassNames, addSearchExpando, addSearchFolderId, addSearchGroupId, addSearchKeywords, addSearchLayout, addSearchLocalizedTerm, addSearchTerm, addSearchUserId, addSelectedLocalizedFieldNames, addStagingGroupKeyword, addStatus, addTrashFields, createFullQuery, createLocalizedSummary, createLocalizedSummary, createSummary, createSummary, delete, delete, deleteDocument, deleteDocument, deleteDocument, deleteDocument, doGetSortField, doReindexDDMStructures, doSearch, getBaseModelDocument, getBaseModelDocument, getClassName, getDatabaseCount, getDefaultSelectedFieldNames, getDefaultSelectedLocalizedFieldNames, getDocument, getFacetQuery, getFullQuery, getLocale, getLocalizedCountryNames, getParentGroupId, getSearchEngineId, getSiteGroupId, getSnippetLocale, getSortField, getSortField, getSummary, getSummary, hasPermission, isCommitImmediately, isFilterSearch, isIndexerEnabled, isPermissionAware, isSelectAllLocales, isStagingAware, isUseSearchResultPermissionFilter, isVisible, isVisible, isVisibleRelatedEntry, newDocument, populateAddresses, postProcessContextQuery, postProcessFullQuery, processHits, reindex, reindex, reindex, reindexDDMStructures, resetFullQuery, search, search, setCommitImmediately, setDefaultSelectedFieldNames, setDefaultSelectedLocalizedFieldNames, setFilterSearch, setIndexerEnabled, setPermissionAware, setSelectAllLocales, setSortableTextFields, setStagingAware, unregisterIndexerPostProcessor, updateFullQuery
 
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
getClassNames
 

Constructor Detail

BaseSearcher

public BaseSearcher()
Method Detail

getIndexerPostProcessors

public IndexerPostProcessor[] getIndexerPostProcessors()
Specified by:
getIndexerPostProcessors in interface Indexer
Overrides:
getIndexerPostProcessors in class BaseIndexer

getPortletId

public String getPortletId()

postProcessSearchQuery

public void postProcessSearchQuery(BooleanQuery searchQuery,
                                   SearchContext searchContext)
                            throws Exception
Specified by:
postProcessSearchQuery in interface Indexer
Overrides:
postProcessSearchQuery in class BaseIndexer
Throws:
Exception

registerIndexerPostProcessor

public void registerIndexerPostProcessor(IndexerPostProcessor indexerPostProcessor)
Specified by:
registerIndexerPostProcessor in interface Indexer
Overrides:
registerIndexerPostProcessor in class BaseIndexer

doDelete

protected void doDelete(Object obj)
                 throws Exception
Specified by:
doDelete in class BaseIndexer
Throws:
Exception

doGetDocument

protected Document doGetDocument(Object obj)
                          throws Exception
Specified by:
doGetDocument in class BaseIndexer
Throws:
Exception

doGetSummary

protected Summary doGetSummary(Document document,
                               Locale locale,
                               String snippet,
                               PortletURL portletURL,
                               PortletRequest portletRequest,
                               PortletResponse portletResponse)
                        throws Exception
Specified by:
doGetSummary in class BaseIndexer
Throws:
Exception

doReindex

protected void doReindex(Object obj)
                  throws Exception
Specified by:
doReindex in class BaseIndexer
Throws:
Exception

doReindex

protected void doReindex(String className,
                         long classPK)
                  throws Exception
Specified by:
doReindex in class BaseIndexer
Throws:
Exception

doReindex

protected void doReindex(String[] ids)
                  throws Exception
Specified by:
doReindex in class BaseIndexer
Throws:
Exception

getPortletId

protected String getPortletId(SearchContext searchContext)
Specified by:
getPortletId in class BaseIndexer

Liferay 7.0-ce-m3