| java.lang.Object org.openharmonise.rm.search.HarmoniseIndexer
HarmoniseIndexer | public class HarmoniseIndexer (Code) | | Interface to the Lucene text searching and indexing API for use with objects within Harmonise.
author: Michael Bell author: jejking version: $Revision: 1.4 $ |
Method Summary | |
public void | deleteFromIndex(AbstractObject xobj) Deletes the given object from the index. | public static HarmoniseIndexer | getIndexer(String indexHome) | public static HarmoniseIndexer | getInstance() Returns singleton instance of HarmoniseIndexer . | public String | getQuery(Class xobjClass, Vector groupIds, String sName, String sDisplayName, String sSummary, String sContent) Returns the Lucene query string built from the conditions given for 'name', 'summary', etc. | public void | indexObject(AbstractObject pObj) Indexes the given object. | public static boolean | isIndexed(AbstractObject xobj) Returns true if the given object is indexed. | public List | search(String queryString) Utility method to query the Lucene index independently of the Harmonise API.
Parameters: queryString - a correctly formatted Lucene query to be parsed. | public List | searchContents(Class xobjClass, Vector groupIds, String sName, String sSummary, String sContent) Searches the index for objects of the type given by the Class and
fulfilling the conditions given by the other arguments and returns a List
of object IDs. | public List | searchContents(String queryString) Runs the given query against the index and returns a List of object
IDs. |
ATTRIB_CLASSNAME | final public static String ATTRIB_CLASSNAME(Code) | | |
TAG_COMPARISON | final public static String TAG_COMPARISON(Code) | | |
getQuery | public String getQuery(Class xobjClass, Vector groupIds, String sName, String sDisplayName, String sSummary, String sContent)(Code) | | Returns the Lucene query string built from the conditions given for 'name', 'summary', etc.
Parameters: xobjClass - Parameters: groupIds - Parameters: sName - Parameters: sDisplayName - Parameters: sSummary - Parameters: sContent - |
search | public List search(String queryString) throws HarmoniseIndexerException(Code) | | Utility method to query the Lucene index independently of the Harmonise API.
Parameters: queryString - a correctly formatted Lucene query to be parsed. List of Strings containing some summary info about the Hits returned throws: HarmoniseIndexerException - |
searchContents | public List searchContents(Class xobjClass, Vector groupIds, String sName, String sSummary, String sContent) throws HarmoniseIndexerException(Code) | | Searches the index for objects of the type given by the Class and
fulfilling the conditions given by the other arguments and returns a List
of object IDs.
Parameters: xobj - Parameters: groupIds - Parameters: sName - Parameters: sSummary - Parameters: sContent - throws: HarmoniseIndexerException - |
|
|