net.sf.cantina.search
Class LuceneSearchEngine

java.lang.Object
  extended bynet.sf.cantina.SearchEngine
      extended bynet.sf.cantina.search.LuceneSearchEngine

public class LuceneSearchEngine
extends SearchEngine

Author:
Stephane JAIS

Field Summary
 
Fields inherited from class net.sf.cantina.SearchEngine
instance
 
Constructor Summary
LuceneSearchEngine(java.lang.String indexPath)
           
 
Method Summary
protected static void addDocumentToIndex(Document d, org.apache.lucene.index.IndexWriter writer)
           
protected static void deleteDocument(Document d, org.apache.lucene.index.IndexReader reader)
           
 void deleteIndex()
           
 void indexAllDocuments(DataSource ds)
           
static boolean indexExists(java.lang.String indexPath)
           
 ListIterator searchDocuments(java.lang.String query)
           
 void updateDocument(Document d)
           
 
Methods inherited from class net.sf.cantina.SearchEngine
getInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LuceneSearchEngine

public LuceneSearchEngine(java.lang.String indexPath)
                   throws java.lang.Exception
Method Detail

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.