com.liferay.portal.kernel.search
Interface Indexer


public interface Indexer

View Source

Author:
Brian Wing Shun Chan, Raymond Augé

Field Summary
static int DEFAULT_INTERVAL
           
 
Method Summary
 void delete(java.lang.Object obj)
           
 java.lang.String[] getClassNames()
           
 Document getDocument(java.lang.Object obj)
           
 Summary getSummary(Document document, java.lang.String snippet, javax.portlet.PortletURL portletURL)
           
 void reindex(java.lang.Object obj)
           
 void reindex(java.lang.String[] ids)
           
 void reindex(java.lang.String className, long classPK)
           
 Hits search(SearchContext searchContext)
           
 

Field Detail

DEFAULT_INTERVAL

static final int DEFAULT_INTERVAL
See Also:
Constant Field Values
Method Detail

delete

void delete(java.lang.Object obj)
            throws SearchException
Throws:
SearchException

getClassNames

java.lang.String[] getClassNames()

getDocument

Document getDocument(java.lang.Object obj)
                     throws SearchException
Throws:
SearchException

getSummary

Summary getSummary(Document document,
                   java.lang.String snippet,
                   javax.portlet.PortletURL portletURL)

reindex

void reindex(java.lang.Object obj)
             throws SearchException
Throws:
SearchException

reindex

void reindex(java.lang.String className,
             long classPK)
             throws SearchException
Throws:
SearchException

reindex

void reindex(java.lang.String[] ids)
             throws SearchException
Throws:
SearchException

search

Hits search(SearchContext searchContext)
            throws SearchException
Throws:
SearchException