1 16 package org.apache.cocoon.components.search; 17 18 import org.apache.avalon.framework.component.Component; 19 import org.apache.cocoon.ProcessingException; 20 import org.apache.lucene.analysis.Analyzer; 21 import org.apache.lucene.search.Hits; 22 import org.apache.lucene.search.Query; 23 import org.apache.lucene.store.Directory; 24 25 26 37 public interface LuceneCocoonSearcher extends Component 38 { 39 48 String ROLE = "org.apache.cocoon.components.search.LuceneCocoonSearcher"; 49 50 51 65 void setAnalyzer(Analyzer analyzer); 66 67 68 81 Analyzer getAnalyzer(); 82 83 93 void setDirectory(Directory directory); 94 95 96 108 Hits search(String query_string, String default_field) throws ProcessingException; 109 110 121 Hits search(Query query) throws ProcessingException; 122 } 123 124 | Popular Tags |