Liferay 7.0-ce-m6

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:
AssetSearcher, DLSearcher, 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, PortletRequest portletRequest, PortletResponse portletResponse)
           
protected  void doPostProcessSearchQuery(Indexer indexer, BooleanQuery searchQuery, SearchContext searchContext)
          Deprecated. As of 7.0.0, added strictly to support backwards compatibility of Indexer.postProcessSearchQuery( BooleanQuery, SearchContext)
protected  void doReindex(Object obj)
           
protected  void doReindex(String[] ids)
           
protected  void doReindex(String className, long classPK)
           
 String getClassName()
           
 IndexerPostProcessor[] getIndexerPostProcessors()
           
 void postProcessSearchQuery(BooleanQuery searchQuery, BooleanFilter fullQueryBooleanFilter, SearchContext searchContext)
           
 void registerIndexerPostProcessor(IndexerPostProcessor indexerPostProcessor)
           
 
Methods inherited from class com.liferay.portal.kernel.search.BaseIndexer
addAssetFields, addDefaultHighlightFieldNames, addDefaultSelectedFieldNames, addFacetClause, addFacetSelectedFieldNames, addSearchAssetCategoryIds, addSearchAssetCategoryTitles, addSearchAssetTagNames, addSearchClassTypeIds, addSearchEntryClassNames, addSearchExpando, addSearchFolderId, addSearchGroupId, addSearchKeywords, addSearchLayout, addSearchLocalizedTerm, addSearchTerm, addSearchUserId, addSelectedLocalizedFieldNames, addStagingGroupKeyword, addStatus, addTrashFields, createFullQuery, createSummary, createSummary, delete, delete, deleteDocument, deleteDocument, deleteDocument, deleteDocument, doGetSortField, doSearch, getBaseModelDocument, getBaseModelDocument, getClassName, getClassNames, getDefaultSelectedFieldNames, getDefaultSelectedLocalizedFieldNames, getDocument, getExpandoFieldName, getFacetBooleanFilter, getFullQuery, getLocale, getLocalizedCountryNames, getPortletId, getPortletId, getSearchClassNames, getSearchEngineId, getSiteGroup, getSiteGroupId, getSnippetLocale, getSortField, getSortField, getSummary, getSummary, hasPermission, isCommitImmediately, isFilterSearch, isIndexerEnabled, isPermissionAware, isSelectAllLocales, isStagingAware, isStagingGroup, isUseSearchResultPermissionFilter, isVisible, isVisible, isVisibleRelatedEntry, newDocument, populateAddresses, populateMap, postProcessContextBooleanFilter, postProcessContextQuery, postProcessFullQuery, postProcessSearchQuery, processHits, reindex, reindex, reindex, resetFullQuery, search, search, searchCount, setCommitImmediately, setDefaultSelectedFieldNames, setDefaultSelectedLocalizedFieldNames, setFilterSearch, setIndexerEnabled, setPermissionAware, setSelectAllLocales, setStagingAware, unregisterIndexerPostProcessor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseSearcher

public BaseSearcher()
Method Detail

getClassName

public String getClassName()

getIndexerPostProcessors

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

postProcessSearchQuery

public void postProcessSearchQuery(BooleanQuery searchQuery,
                                   BooleanFilter fullQueryBooleanFilter,
                                   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,
                               PortletRequest portletRequest,
                               PortletResponse portletResponse)
                        throws Exception
Specified by:
doGetSummary in class BaseIndexer
Throws:
Exception

doPostProcessSearchQuery

@Deprecated
protected void doPostProcessSearchQuery(Indexer indexer,
                                                   BooleanQuery searchQuery,
                                                   SearchContext searchContext)
                                 throws Exception
Deprecated. As of 7.0.0, added strictly to support backwards compatibility of Indexer.postProcessSearchQuery( BooleanQuery, SearchContext)

Overrides:
doPostProcessSearchQuery 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

Liferay 7.0-ce-m6