Package org.springmodules.lucene.search.factory

Examples of org.springmodules.lucene.search.factory.SimpleSearcherFactory


*/
public class ParsedLuceneSearchQueryTests extends AbstractLuceneTestCase {

  final public void testSearch() {
    //Initialization of the searcher
    SearcherFactory searcherFactory = new SimpleSearcherFactory(directory);

    //Initialization of the query
    LuceneSearchQuery query=new ParsedLuceneSearchQuery(searcherFactory,new SimpleAnalyzer()) {
      protected QueryParams configureSearchQuery(String textToSearch) {
        return new QueryParams("field", textToSearch);
View Full Code Here


*/
public class SimpleLuceneSearchQueryTests extends AbstractLuceneTestCase {

  final public void testSearch() {
    //Initialization of the searcher
    SearcherFactory searcherFactory = new SimpleSearcherFactory(directory);

    //Initialization of the query
    LuceneSearchQuery query = new SimpleLuceneSearchQuery(searcherFactory,null) {
      protected Query constructSearchQuery(String textToSearch) throws ParseException {
        return new TermQuery(new Term("field", textToSearch));
View Full Code Here

TOP

Related Classes of org.springmodules.lucene.search.factory.SimpleSearcherFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.