net.sf.cantina.search
Class LuceneSearchEngine
java.lang.Object
net.sf.cantina.SearchEngine
net.sf.cantina.search.LuceneSearchEngine
- public class LuceneSearchEngine
- extends SearchEngine
- Author:
- Stephane JAIS
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LuceneSearchEngine
public LuceneSearchEngine(java.lang.String indexPath)
throws java.lang.Exception
indexExists
public static boolean indexExists(java.lang.String indexPath)
searchDocuments
public ListIterator searchDocuments(java.lang.String query)
throws java.lang.Exception
- Specified by:
searchDocuments
in class SearchEngine
- Throws:
java.lang.Exception
indexAllDocuments
public void indexAllDocuments(DataSource ds)
throws java.lang.Exception
- Specified by:
indexAllDocuments
in class SearchEngine
- Throws:
java.lang.Exception
updateDocument
public void updateDocument(Document d)
throws java.lang.Exception
- Specified by:
updateDocument
in class SearchEngine
- Throws:
java.lang.Exception
addDocumentToIndex
protected static void addDocumentToIndex(Document d,
org.apache.lucene.index.IndexWriter writer)
throws java.lang.Exception
- Throws:
java.lang.Exception
deleteDocument
protected static void deleteDocument(Document d,
org.apache.lucene.index.IndexReader reader)
throws java.lang.Exception
- Throws:
java.lang.Exception
deleteIndex
public void deleteIndex()
Copyright © 2004 Cantina. All Rights Reserved.