KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > snapper > api > Searcher


1 package org.enhydra.snapper.api;
2
3 import java.util.*;
4 import java.io.*;
5
6 /**
7  * Searcher is a searching service. For example, Lucene index search engine
8  *
9  * @author Milin Radivoj
10  */

11
12 public interface Searcher {
13     
14     public void setUpSearcher(Properties prop)throws IOException;
15     public void setUpHighLighter(Properties prop);
16     public void searchDocs(String JavaDoc luceneQuery, String JavaDoc language) throws IOException;
17     public void searchDocs(String JavaDoc luceneQuery, String JavaDoc highlighterContentQuery, String JavaDoc language) throws IOException;
18     public void searchDocs(String JavaDoc luceneQuery, String JavaDoc highlighterContentQuery, String JavaDoc highlighterPropertiesQuery, String JavaDoc language) throws IOException;
19     public void searchDocs(String JavaDoc luceneQuery, String JavaDoc highlighterContentQuery, String JavaDoc highlighterPropertiesQuery, String JavaDoc sortType, String JavaDoc language) throws IOException;
20     public void searchDocs(String JavaDoc luceneQuery, String JavaDoc highlighterContentQuery, String JavaDoc highlighterPropertiesQuery, String JavaDoc highlighterMetaDataQuery,String JavaDoc sortType, String JavaDoc language) throws IOException;
21     public void close()throws IOException;;
22     public int getSearchedDocsNumber();
23     public long getSearchedTime();
24     public String JavaDoc getXmlSearchedResult();
25     public String JavaDoc getXmlSearchedResult(int begin,int end);
26 }
27
28
29
30   
31
Popular Tags