use of org.apache.storm.solr.bolt.SolrUpdateBolt in project storm by apache.
the class SolrFieldsTopology method getTopology.
protected StormTopology getTopology() throws IOException {
TopologyBuilder builder = new TopologyBuilder();
builder.setSpout("SolrFieldsSpout", new SolrFieldsSpout());
builder.setBolt("SolrUpdateBolt", new SolrUpdateBolt(getSolrConfig(), getSolrMapper(), getSolrCommitStgy())).shuffleGrouping("SolrFieldsSpout");
return builder.createTopology();
}
use of org.apache.storm.solr.bolt.SolrUpdateBolt in project storm by apache.
the class SolrJsonTopology method getTopology.
protected StormTopology getTopology() throws IOException {
TopologyBuilder builder = new TopologyBuilder();
builder.setSpout("SolrJsonSpout", new SolrJsonSpout());
builder.setBolt("SolrUpdateBolt", new SolrUpdateBolt(getSolrConfig(), getSolrMapper(), getSolrCommitStgy())).shuffleGrouping("SolrJsonSpout");
return builder.createTopology();
}
Aggregations