Liferay 6.0.5

com.liferay.portlet.journal.util
Class JournalIndexer

java.lang.Object
  extended by com.liferay.portal.kernel.search.BaseIndexer
      extended by com.liferay.portlet.journal.util.JournalIndexer
All Implemented Interfaces:
Indexer

public class JournalIndexer
extends BaseIndexer


Field Summary
protected static String _FIELD_NAMESPACE
           
static String[] CLASS_NAMES
           
static String PORTLET_ID
           
 
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
JournalIndexer()
           
 
Method Summary
protected  void doDelete(Object obj)
           
protected  Document doGetDocument(Object obj)
           
protected  void doReindex(Object obj)
           
protected  void doReindex(String[] ids)
           
protected  void doReindex(String className, long classPK)
           
protected  String encodeFieldName(String name)
           
 String[] getClassNames()
           
protected  String getIndexableContent(Document document, Element rootElement)
           
protected  String getIndexableContent(Document document, String content)
           
protected  String getPortletId(SearchContext searchContext)
           
 Summary getSummary(Document document, String snippet, PortletURL portletURL)
           
protected  void indexField(Document document, Element element, String elType, String elIndexType)
           
protected  String processContent(Document document, String content)
           
protected  void reindexArticles(long companyId)
           
protected  void reindexArticles(long companyId, int start, int end)
           
 
Methods inherited from class com.liferay.portal.kernel.search.BaseIndexer
addSearchAssetCategoryIds, addSearchAssetTagNames, addSearchCategoryIds, addSearchFolderIds, addSearchGroupId, addSearchKeywords, addSearchNodeIds, addSearchOwnerUserId, addSearchPortletIds, checkSearchCategoryId, checkSearchFolderId, checkSearchNodeId, createFullQuery, delete, filterSearch, getClassName, getDocument, getParentGroupId, hasPermission, isFilterSearch, postProcessContextQuery, postProcessFullQuery, postProcessSearchQuery, reindex, reindex, reindex, search
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_NAMES

public static final String[] CLASS_NAMES

PORTLET_ID

public static final String PORTLET_ID
See Also:
Constant Field Values

_FIELD_NAMESPACE

protected static final String _FIELD_NAMESPACE
See Also:
Constant Field Values
Constructor Detail

JournalIndexer

public JournalIndexer()
Method Detail

getClassNames

public String[] getClassNames()

getSummary

public Summary getSummary(Document document,
                          String snippet,
                          PortletURL portletURL)

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

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

encodeFieldName

protected String encodeFieldName(String name)

getIndexableContent

protected String getIndexableContent(Document document,
                                     Element rootElement)
                              throws Exception
Throws:
Exception

getIndexableContent

protected String getIndexableContent(Document document,
                                     String content)

getPortletId

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

indexField

protected void indexField(Document document,
                          Element element,
                          String elType,
                          String elIndexType)

processContent

protected String processContent(Document document,
                                String content)

reindexArticles

protected void reindexArticles(long companyId)
                        throws Exception
Throws:
Exception

reindexArticles

protected void reindexArticles(long companyId,
                               int start,
                               int end)
                        throws Exception
Throws:
Exception

Liferay 6.0.5