streams-plugin-elasticsearch generates resources from json schemas to assist with indexing of json data using Elasticsearch.
Output will be placed in target/generated-resources/elasticsearch by default
Run within a module containing a src/main/jsonschema directory
mvn org.apache.streams.plugins:streams-plugin-elasticsearch:0.4-incubating:elasticsearch
Embed within your own java code
StreamsElasticsearchGenerationConfig config = new StreamsElasticsearchGenerationConfig(); config.setSourceDirectory("src/main/jsonschema"); config.setTargetDirectory("target/generated-resources"); StreamsElasticsearchResourceGenerator generator = new StreamsElasticsearchResourceGenerator(config); generator.run();