com.liferay.portlet.journal.util
Class JournalIndexer
java.lang.Object
com.liferay.portal.kernel.search.BaseIndexer
com.liferay.portlet.journal.util.JournalIndexer
- All Implemented Interfaces:
- Indexer
public class JournalIndexer
- extends BaseIndexer
Method Summary |
protected void |
addSearchLocalizedTerm(BooleanQuery searchQuery,
SearchContext searchContext,
String field,
boolean like)
|
protected void |
doDelete(Object obj)
|
protected Document |
doGetDocument(Object obj)
|
protected String |
doGetSortField(String orderByCol)
|
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)
|
protected String |
encodeFieldName(Element element)
|
protected String |
extractContent(JournalArticle article,
String languageId)
|
protected String |
extractDynamicContent(Element rootElement)
|
protected String |
extractDynamicContent(String content)
|
protected String |
extractStaticContent(String content)
|
String[] |
getClassNames()
|
protected String[] |
getLanguageIds(String defaultLanguageId,
String content)
|
String |
getPortletId()
|
protected String |
getPortletId(SearchContext searchContext)
|
protected void |
indexField(Document document,
Element element,
String elType,
String elIndexType)
|
boolean |
isPermissionAware()
|
void |
postProcessContextQuery(BooleanQuery contextQuery,
SearchContext searchContext)
|
void |
postProcessSearchQuery(BooleanQuery searchQuery,
SearchContext searchContext)
|
protected void |
processStructure(Document structureDocument,
Document document,
Element rootElement)
|
protected void |
processStructure(JournalStructure structure,
Document document,
String content)
|
protected void |
reindexArticles(long companyId)
|
Methods inherited from class com.liferay.portal.kernel.search.BaseIndexer |
addLocalizedSearchTerm, addSearchArrayQuery, addSearchAssetCategoryIds, addSearchAssetCategoryTitles, addSearchAssetTagNames, addSearchDDMStruture, addSearchEntryClassNames, addSearchExpando, addSearchGroupId, addSearchKeywords, addSearchTerm, addStagingGroupKeyword, createFullQuery, delete, delete, deleteDocument, deleteDocument, deleteDocument, deleteDocument, filterSearch, getBaseModelDocument, getClassName, getDocument, getFacetQuery, getFullQuery, getIndexerPostProcessors, getParentGroupId, getSearchEngineId, getSortField, getSummary, hasPermission, isFilterSearch, isIndexerEnabled, isStagingAware, populateAddresses, postProcessFullQuery, registerIndexerPostProcessor, reindex, reindex, reindex, search, setStagingAware, unregisterIndexerPostProcessor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLASS_NAMES
public static final String[] CLASS_NAMES
PORTLET_ID
public static final String PORTLET_ID
- See Also:
- Constant Field Values
JournalIndexer
public JournalIndexer()
getClassNames
public String[] getClassNames()
getPortletId
public String getPortletId()
isPermissionAware
public boolean isPermissionAware()
- Specified by:
isPermissionAware
in interface Indexer
- Overrides:
isPermissionAware
in class BaseIndexer
postProcessContextQuery
public void postProcessContextQuery(BooleanQuery contextQuery,
SearchContext searchContext)
throws Exception
- Specified by:
postProcessContextQuery
in interface Indexer
- Overrides:
postProcessContextQuery
in class BaseIndexer
- Throws:
Exception
postProcessSearchQuery
public void postProcessSearchQuery(BooleanQuery searchQuery,
SearchContext searchContext)
throws Exception
- Specified by:
postProcessSearchQuery
in interface Indexer
- Overrides:
postProcessSearchQuery
in class BaseIndexer
- Throws:
Exception
addSearchLocalizedTerm
protected void addSearchLocalizedTerm(BooleanQuery searchQuery,
SearchContext searchContext,
String field,
boolean like)
throws Exception
- Overrides:
addSearchLocalizedTerm
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
doGetSortField
protected String doGetSortField(String orderByCol)
- Overrides:
doGetSortField
in class BaseIndexer
doGetSummary
protected Summary doGetSummary(Document document,
Locale locale,
String snippet,
PortletURL portletURL)
- Specified by:
doGetSummary
in class BaseIndexer
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(Element element)
extractContent
protected String extractContent(JournalArticle article,
String languageId)
extractDynamicContent
protected String extractDynamicContent(Element rootElement)
extractDynamicContent
protected String extractDynamicContent(String content)
extractStaticContent
protected String extractStaticContent(String content)
getLanguageIds
protected String[] getLanguageIds(String defaultLanguageId,
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)
processStructure
protected void processStructure(Document structureDocument,
Document document,
Element rootElement)
throws Exception
- Throws:
Exception
processStructure
protected void processStructure(JournalStructure structure,
Document document,
String content)
reindexArticles
protected void reindexArticles(long companyId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException