View Javadoc

1   package net.sf.cantina;
2   
3   /***
4    * @author Stephane JAIS
5    */
6   
7   public abstract class SearchEngine
8   {
9     public static SearchEngine instance;
10    public static SearchEngine getInstance()
11    {
12      return instance;
13    }
14  
15    public abstract ListIterator searchDocuments(String query) throws Exception;
16    public abstract void indexAllDocuments(DataSource ds) throws Exception;
17    public abstract void updateDocument(Document d) throws Exception;
18  }