Package com.gentics.cr.lucene.search.query

Examples of com.gentics.cr.lucene.search.query.SynonymQueryParser


    job.run();
   
 
  @Test
  public void testQueryParser(){
    SynonymQueryParser sqp = new SynonymQueryParser(config2, LuceneVersion.getVersion(), new String[]{"content","name"}, new StandardAnalyzer(LuceneVersion.getVersion()), null);
    Query query = null;
    try {
      query = sqp.parse("content:d1 name:d1")
    } catch (ParseException e) {
      e.printStackTrace();
    }
    Assert.assertEquals("content:d1 name:d1 content:s1 name:s1",""+query);
  }
View Full Code Here

TOP

Related Classes of com.gentics.cr.lucene.search.query.SynonymQueryParser

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.