Liferay 7.0-ce-m6

com.liferay.portal.kernel.search.dummy
Class DummyIndexer

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

public class DummyIndexer
extends Object
implements Indexer


Field Summary
 
Fields inherited from interface com.liferay.portal.kernel.search.Indexer
DEFAULT_INTERVAL
 
Constructor Summary
DummyIndexer()
           
 
Method Summary
 void delete(long companyId, String uid)
           
 void delete(Object obj)
           
 String getClassName()
           
 String[] getClassNames()
          Deprecated. As of 7.0.0, replaced by getSearchClassNames()
 Document getDocument(Object obj)
           
 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()
           
 boolean isPermissionAware()
           
 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(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 unregisterIndexerPostProcessor(IndexerPostProcessor indexerPostProcessor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyIndexer

public DummyIndexer()
Method Detail

delete

public void delete(long companyId,
                   String uid)
Specified by:
delete in interface Indexer

delete

public void delete(Object obj)
Specified by:
delete in interface Indexer

getClassName

public String getClassName()
Specified by:
getClassName in interface Indexer

getClassNames

@Deprecated
public String[] getClassNames()
Deprecated. As of 7.0.0, replaced by getSearchClassNames()

Specified by:
getClassNames in interface Indexer

getDocument

public Document getDocument(Object obj)
Specified by:
getDocument in interface Indexer

getFacetBooleanFilter

public BooleanFilter getFacetBooleanFilter(String className,
                                           SearchContext searchContext)
Specified by:
getFacetBooleanFilter in interface Indexer

getFullQuery

public BooleanQuery getFullQuery(SearchContext searchContext)
Specified by:
getFullQuery in interface Indexer

getIndexerPostProcessors

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

getPortletId

@Deprecated
public String getPortletId()
Deprecated. As of 7.0.0, replaced by getClassName()

Specified by:
getPortletId in interface Indexer

getSearchClassNames

public String[] getSearchClassNames()
Specified by:
getSearchClassNames 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

@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

getSummary

public Summary getSummary(Document document,
                          String snippet,
                          PortletRequest portletRequest,
                          PortletResponse portletResponse)
Specified by:
getSummary in interface Indexer

hasPermission

public boolean hasPermission(PermissionChecker permissionChecker,
                             String entryClassName,
                             long entryClassPK,
                             String actionId)
Specified by:
hasPermission in interface Indexer

isCommitImmediately

public boolean isCommitImmediately()
Specified by:
isCommitImmediately in interface Indexer

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

postProcessContextBooleanFilter

public void postProcessContextBooleanFilter(BooleanFilter contextBooleanFilter,
                                            SearchContext searchContext)
                                     throws Exception
Specified by:
postProcessContextBooleanFilter in interface Indexer
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

postProcessSearchQuery

public void postProcessSearchQuery(BooleanQuery searchQuery,
                                   BooleanFilter fullQueryBooleanFilter,
                                   SearchContext searchContext)
Specified by:
postProcessSearchQuery in interface Indexer

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

registerIndexerPostProcessor

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

reindex

public void reindex(Object obj)
Specified by:
reindex in interface Indexer

reindex

public void reindex(String className,
                    long classPK)
Specified by:
reindex in interface Indexer

reindex

public void reindex(String[] ids)
Specified by:
reindex in interface Indexer

search

public Hits search(SearchContext searchContext)
Specified by:
search in interface Indexer

search

public Hits search(SearchContext searchContext,
                   String... selectedFieldNames)
Specified by:
search in interface Indexer

searchCount

public long searchCount(SearchContext searchContext)
Specified by:
searchCount in interface Indexer

unregisterIndexerPostProcessor

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

Liferay 7.0-ce-m6