Examples of ElasticSearchFieldsDefinitionReader


Examples of com.sematext.searchschemer.reader.elasticsearch.ElasticSearchFieldsDefinitionReader

  /**
   * {@inheritDoc}
   */
  @Override
  public IndexStructure read(String file) throws IOException {
    ElasticSearchFieldsDefinitionReader reader = new ElasticSearchFieldsDefinitionReader(new File(file));
    List<FieldAttributes> fields = reader.readFields();
    IndexStructure structure = new BasicIndexStructure();
    for (FieldAttributes field : fields) {
      structure.addField(field.name(), field);
    }
    return structure;
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.