Liferay 6.1.2-ce-ga3

com.liferay.portal.kernel.search
Class FacetedSearcher

java.lang.Object
  extended by com.liferay.portal.kernel.search.BaseIndexer
      extended by com.liferay.portal.kernel.search.FacetedSearcher
All Implemented Interfaces:
Indexer

public class FacetedSearcher
extends BaseIndexer


Field Summary
 
Fields inherited from class com.liferay.portal.kernel.search.BaseIndexer
INDEX_FILTER_SEARCH_LIMIT
 
Fields inherited from interface com.liferay.portal.kernel.search.Indexer
DEFAULT_INTERVAL
 
Constructor Summary
FacetedSearcher()
           
 
Method Summary
protected  void addSearchExpandoKeywords(BooleanQuery searchQuery, SearchContext searchContext, String keywords, String className)
           
protected  BooleanQuery createFullQuery(BooleanQuery contextQuery, SearchContext searchContext)
           
protected  void doDelete(Object obj)
           
protected  Document doGetDocument(Object obj)
           
protected  Summary doGetSummary(Document document, Locale locale, String snippet, PortletURL portletURL)
           
protected  void doReindex(Object obj)
           
protected  void doReindex(String[] ids)
           
protected  void doReindex(String className, long classPK)
           
 String[] getClassNames()
           
 IndexerPostProcessor[] getIndexerPostProcessors()
           
static Indexer getInstance()
           
 String getPortletId()
           
protected  String getPortletId(SearchContext searchContext)
           
protected  boolean isFilterSearch(SearchContext searchContext)
           
 void registerIndexerPostProcessor(IndexerPostProcessor indexerPostProcessor)
           
 Hits search(SearchContext searchContext)
           
 void unregisterIndexerPostProcessor(IndexerPostProcessor indexerPostProcessor)
           
 
Methods inherited from class com.liferay.portal.kernel.search.BaseIndexer
addLocalizedSearchTerm, addSearchArrayQuery, addSearchAssetCategoryIds, addSearchAssetCategoryTitles, addSearchAssetTagNames, addSearchDDMStruture, addSearchEntryClassNames, addSearchExpando, addSearchGroupId, addSearchKeywords, addSearchLocalizedTerm, addSearchTerm, addStagingGroupKeyword, delete, delete, deleteDocument, deleteDocument, deleteDocument, deleteDocument, doGetSortField, filterSearch, getBaseModelDocument, getClassName, getDocument, getFacetQuery, getFullQuery, getParentGroupId, getSearchEngineId, getSortField, getSummary, hasPermission, isFilterSearch, isIndexerEnabled, isPermissionAware, isStagingAware, populateAddresses, postProcessContextQuery, postProcessFullQuery, postProcessSearchQuery, reindex, reindex, reindex, setStagingAware
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FacetedSearcher

public FacetedSearcher()
Method Detail

getInstance

public static Indexer getInstance()

getClassNames

public String[] getClassNames()

getIndexerPostProcessors

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

getPortletId

public String getPortletId()

registerIndexerPostProcessor

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

search

public Hits search(SearchContext searchContext)
            throws SearchException
Specified by:
search in interface Indexer
Overrides:
search in class BaseIndexer
Throws:
SearchException

unregisterIndexerPostProcessor

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

addSearchExpandoKeywords

protected void addSearchExpandoKeywords(BooleanQuery searchQuery,
                                        SearchContext searchContext,
                                        String keywords,
                                        String className)
                                 throws Exception
Throws:
Exception

createFullQuery

protected BooleanQuery createFullQuery(BooleanQuery contextQuery,
                                       SearchContext searchContext)
                                throws Exception
Overrides:
createFullQuery in class BaseIndexer
Throws:
Exception

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)
                        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

isFilterSearch

protected boolean isFilterSearch(SearchContext searchContext)

Liferay 6.1.2-ce-ga3