| |
|
| java.lang.Object org.apache.cocoon.components.search.Index
Index | public class Index (Code) | | Index Class
author: Nicolas Maisonneuve |
createDocument | public Document createDocument(String uid)(Code) | | Create a lucene document
Parameters: uid - String the document uid Document a empty document |
createField | public Field createField(String fieldname, String value) throws IndexException(Code) | | create a lucene field
Parameters: fieldname - String fieldname (must existed in the index structure) Parameters: value - String value |
createField | public Field createField(String fieldname, Date value) throws IndexException(Code) | | create a lucene field for date value
Parameters: fieldname - String fieldname (must existed in the index structure) Parameters: value - String value |
getDefaultAnalyzerID | public String getDefaultAnalyzerID()(Code) | | get the default Analyzer
the id of the default analyzer |
getDirectory | public Directory getDirectory()(Code) | | get the lucene directory
the lucene directory |
getID | public String getID()(Code) | | get the index ID
the index ID |
getStructure | public IndexStructure getStructure()(Code) | | Return the index Structure
the index Structure |
releaseIndexer | public synchronized void releaseIndexer(Indexer indexer)(Code) | | Release the indexer
Parameters: indexer - |
setDefaultAnalyzerID | public void setDefaultAnalyzerID(String defaultAnalyzerID)(Code) | | set the default Analyzer
Parameters: defaultAnalyzerID - the id of the default Analyzer |
setDirectory | public boolean setDirectory(Directory dir) throws IOException(Code) | | Set the lucene Directory
Parameters: dir - lucene Directory success or not throws: IOException - |
setID | public void setID(String id)(Code) | | Set the index ID
Parameters: id - index ID |
setIndexer | public void setIndexer(String indexer)(Code) | | Parameters: indexer - The indexer to set. |
setManager | public void setManager(ServiceManager manager)(Code) | | |
setStructure | public void setStructure(IndexStructure structure)(Code) | | Set the index structure
Parameters: structure - IndexStructure |
|
|
|