Package com.hmsonline.virgil.index

Examples of com.hmsonline.virgil.index.SolrIndexer


    return options;
  }

  private CassandraStorage createCassandraStorage(CommandLine params, VirgilConfiguration config)
      throws Exception {
    SolrIndexer indexer = new SolrIndexer(config);

    if (params.hasOption("embedded")) {
      System.out.println("Starting virgil with embedded cassandra server.");
      String yamlFile = config.getCassandraYaml();
      if (yamlFile == null)
View Full Code Here


    private static final String COLUMN_FAMILY = "TEST_CF";
    private static final String KEY = "TEST_ROW";

  @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

TOP

Related Classes of com.hmsonline.virgil.index.SolrIndexer

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.