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

Examples of com.gentics.cr.lucene.search.query.mocks.SimpleLucene


  QueryParser parser;

  protected void setUp() throws Exception {
    super.setUp();

    lucene = new SimpleLucene();
    lucene.add(SimpleLucene.CONTENT_ATTRIBUTE + ":this word9 the word1 tat", "node_id:1");

    config = new GenericConfiguration();
    config.set("class", "com.gentics.cr.lucene.search.highlight.WhitespaceVectorBolder");
    config.set("attribute", SimpleLucene.CONTENT_ATTRIBUTE);
View Full Code Here


  @Override
  protected void setUp() throws Exception {
    super.setUp();
    parser = new CRQueryParser(LuceneVersion.getVersion(), SEARCHED_ATTRIBUTES, STANDARD_ANALYZER);
    crRequest = new CRRequest();
    lucene = new SimpleLucene();

    documents = new ArrayList<ComparableDocument>();
    /* 0 */documents.add(new ComparableDocument(lucene.add(
      SimpleLucene.CONTENT_ATTRIBUTE + ":word9 word1",
      "node_id:1")));
View Full Code Here

  @Override
  protected void setUp() throws Exception {
    super.setUp();
    parser = new CRQueryParser(LuceneVersion.getVersion(), SEARCHED_ATTRIBUTES, STANDARD_ANALYZER);
    crRequest = new CRRequest();
    lucene = new SimpleLucene();

    documents = new ArrayList<ComparableDocument>();
    /* 0 */documents.add(new ComparableDocument(lucene.add(
      SimpleLucene.CONTENT_ATTRIBUTE + ":word9 word1",
      "node_id:1")));
View Full Code Here

    p.setProperty("TIMERANGE", "1296000"); // 15 days

    config.setProperties(p);

    crRequest = new CRRequest();
    lucene = new SimpleLucene();
    parser = new CRRecencyBoostingQueryParser(config,
          LuceneVersion.getVersion(), SEARCHED_ATTRIBUTES, STANDARD_ANALYZER, crRequest);
   
    long daysAgo10 = today - 3600*24*10;
    long daysAgo20 = today - 3600*24*20;
 
View Full Code Here

TOP

Related Classes of com.gentics.cr.lucene.search.query.mocks.SimpleLucene

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.