Liferay 6.0.5

com.liferay.portal.kernel.search
Class BaseIndexer

java.lang.Object
  extended by com.liferay.portal.kernel.search.BaseIndexer
All Implemented Interfaces:
Indexer
Direct Known Subclasses:
AssetIndexer, BlogsIndexer, BookmarksIndexer, CalIndexer, DLIndexer, DLIndexer, ExpandoIndexer, IGIndexer, JournalIndexer, MBIndexer, PluginPackageIndexer, SCIndexer, WikiIndexer

public abstract class BaseIndexer
extends Object
implements Indexer


Field Summary
static int INDEX_FILTER_SEARCH_LIMIT
           
 
Fields inherited from interface com.liferay.portal.kernel.search.Indexer
DEFAULT_INTERVAL
 
Constructor Summary
BaseIndexer()
           
 
Method Summary
protected  void addSearchAssetCategoryIds(BooleanQuery contextQuery, SearchContext searchContext)
           
protected  void addSearchAssetTagNames(BooleanQuery contextQuery, SearchContext searchContext)
           
protected  void addSearchCategoryIds(BooleanQuery contextQuery, SearchContext searchContext)
           
protected  void addSearchFolderIds(BooleanQuery contextQuery, SearchContext searchContext)
           
protected  void addSearchGroupId(BooleanQuery contextQuery, SearchContext searchContext)
           
protected  void addSearchKeywords(BooleanQuery searchQuery, SearchContext searchContext)
           
protected  void addSearchNodeIds(BooleanQuery contextQuery, SearchContext searchContext)
           
protected  void addSearchOwnerUserId(BooleanQuery contextQuery, SearchContext searchContext)
           
protected  void addSearchPortletIds(BooleanQuery contextQuery, SearchContext searchContext)
           
protected  void checkSearchCategoryId(long categoryId, SearchContext searchContext)
           
protected  void checkSearchFolderId(long folderId, SearchContext searchContext)
           
protected  void checkSearchNodeId(long nodeId, SearchContext searchContext)
           
protected  BooleanQuery createFullQuery(BooleanQuery contextQuery, SearchContext searchContext)
           
 void delete(Object obj)
           
protected abstract  void doDelete(Object obj)
           
protected abstract  Document doGetDocument(Object obj)
           
protected abstract  void doReindex(Object obj)
           
protected abstract  void doReindex(String[] ids)
           
protected abstract  void doReindex(String className, long classPK)
           
protected  Hits filterSearch(Hits hits, PermissionChecker permissionChecker, SearchContext searchContext)
           
protected  String getClassName(SearchContext searchContext)
           
 Document getDocument(Object obj)
           
protected  long getParentGroupId(long groupId)
           
protected abstract  String getPortletId(SearchContext searchContext)
           
protected  boolean hasPermission(PermissionChecker permissionChecker, long entryClassPK, String actionId)
           
protected  boolean isFilterSearch()
           
protected  void postProcessContextQuery(BooleanQuery contextQuery, SearchContext searchContext)
           
protected  void postProcessFullQuery(BooleanQuery fullQuery, SearchContext searchContext)
           
protected  void postProcessSearchQuery(BooleanQuery searchQuery, SearchContext searchContext)
           
 void reindex(Object obj)
           
 void reindex(String[] ids)
           
 void reindex(String className, long classPK)
           
 Hits search(SearchContext searchContext)
           
 
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, getSummary
 

Field Detail

INDEX_FILTER_SEARCH_LIMIT

public static final int INDEX_FILTER_SEARCH_LIMIT
Constructor Detail

BaseIndexer

public BaseIndexer()
Method Detail

delete

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

getDocument

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

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

search

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

addSearchAssetCategoryIds

protected void addSearchAssetCategoryIds(BooleanQuery contextQuery,
                                         SearchContext searchContext)
                                  throws Exception
Throws:
Exception

addSearchAssetTagNames

protected void addSearchAssetTagNames(BooleanQuery contextQuery,
                                      SearchContext searchContext)
                               throws Exception
Throws:
Exception

addSearchCategoryIds

protected void addSearchCategoryIds(BooleanQuery contextQuery,
                                    SearchContext searchContext)
                             throws Exception
Throws:
Exception

addSearchFolderIds

protected void addSearchFolderIds(BooleanQuery contextQuery,
                                  SearchContext searchContext)
                           throws Exception
Throws:
Exception

addSearchGroupId

protected void addSearchGroupId(BooleanQuery contextQuery,
                                SearchContext searchContext)
                         throws Exception
Throws:
Exception

addSearchKeywords

protected void addSearchKeywords(BooleanQuery searchQuery,
                                 SearchContext searchContext)
                          throws Exception
Throws:
Exception

addSearchNodeIds

protected void addSearchNodeIds(BooleanQuery contextQuery,
                                SearchContext searchContext)
                         throws Exception
Throws:
Exception

addSearchOwnerUserId

protected void addSearchOwnerUserId(BooleanQuery contextQuery,
                                    SearchContext searchContext)

addSearchPortletIds

protected void addSearchPortletIds(BooleanQuery contextQuery,
                                   SearchContext searchContext)
                            throws Exception
Throws:
Exception

checkSearchCategoryId

protected void checkSearchCategoryId(long categoryId,
                                     SearchContext searchContext)
                              throws Exception
Throws:
Exception

checkSearchFolderId

protected void checkSearchFolderId(long folderId,
                                   SearchContext searchContext)
                            throws Exception
Throws:
Exception

checkSearchNodeId

protected void checkSearchNodeId(long nodeId,
                                 SearchContext searchContext)
                          throws Exception
Throws:
Exception

createFullQuery

protected BooleanQuery createFullQuery(BooleanQuery contextQuery,
                                       SearchContext searchContext)
                                throws Exception
Throws:
Exception

doDelete

protected abstract void doDelete(Object obj)
                          throws Exception
Throws:
Exception

doGetDocument

protected abstract Document doGetDocument(Object obj)
                                   throws Exception
Throws:
Exception

doReindex

protected abstract void doReindex(Object obj)
                           throws Exception
Throws:
Exception

doReindex

protected abstract void doReindex(String className,
                                  long classPK)
                           throws Exception
Throws:
Exception

doReindex

protected abstract void doReindex(String[] ids)
                           throws Exception
Throws:
Exception

filterSearch

protected Hits filterSearch(Hits hits,
                            PermissionChecker permissionChecker,
                            SearchContext searchContext)

getClassName

protected String getClassName(SearchContext searchContext)

getParentGroupId

protected long getParentGroupId(long groupId)

getPortletId

protected abstract String getPortletId(SearchContext searchContext)

hasPermission

protected boolean hasPermission(PermissionChecker permissionChecker,
                                long entryClassPK,
                                String actionId)
                         throws Exception
Throws:
Exception

isFilterSearch

protected boolean isFilterSearch()

postProcessContextQuery

protected void postProcessContextQuery(BooleanQuery contextQuery,
                                       SearchContext searchContext)
                                throws Exception
Throws:
Exception

postProcessFullQuery

protected void postProcessFullQuery(BooleanQuery fullQuery,
                                    SearchContext searchContext)
                             throws Exception
Throws:
Exception

postProcessSearchQuery

protected void postProcessSearchQuery(BooleanQuery searchQuery,
                                      SearchContext searchContext)
                               throws Exception
Throws:
Exception

Liferay 6.0.5