Package org.thrudb.thrudex

Examples of org.thrudb.thrudex.Document


  }

  public void testKeywordSearch() {

    try {
      Document d1 = this.newDocument("doc1");
      this.addField(d1, "title", "title number 1", FieldType.TEXT);
      this.addField(d1, "category", "science_fiction", FieldType.KEYWORD);

      index.put(d1);
View Full Code Here


      fail(t.toString());
    }
  }

  private Document newDocument(String key) {
    Document d = new Document();
    d.setIndex(INDEX_NAME);
    d.setKey(key);
    d.setFields(new ArrayList<Field>());

    return d;
  }
View Full Code Here

TOP

Related Classes of org.thrudb.thrudex.Document

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.