Package com.hmsonline.virgil.index

Examples of com.hmsonline.virgil.index.SolrIndexer.index()


  @Test
  public void testIndexing() throws Exception {
    Indexer indexer = new SolrIndexer(null);
    String json = "{\"ADDR1\":\"1234 Collin St.\",\"CITY\":\"Souderton\"}";
    indexer.index(COLUMN_FAMILY, KEY, json);

    json = "{\"ADDR1\":\"1234 Owen St.\",\"CITY\":\"Pottstown\"}";
    indexer.index(COLUMN_FAMILY, KEY + "2", json);
    // TODO: Need to figure out how to test w/o a live SOLR
    indexer.delete(COLUMN_FAMILY, KEY);
View Full Code Here


    Indexer indexer = new SolrIndexer(null);
    String json = "{\"ADDR1\":\"1234 Collin St.\",\"CITY\":\"Souderton\"}";
    indexer.index(COLUMN_FAMILY, KEY, json);

    json = "{\"ADDR1\":\"1234 Owen St.\",\"CITY\":\"Pottstown\"}";
    indexer.index(COLUMN_FAMILY, KEY + "2", json);
    // TODO: Need to figure out how to test w/o a live SOLR
    indexer.delete(COLUMN_FAMILY, KEY);
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.