Github user bbende commented on a diff in the pull request:
https://github.com/apache/incubator-metron/pull/67#discussion_r58552586
--- Diff:
metron-streaming/Metron-Solr/src/main/java/org/apache/metron/writer/solr/SolrWriter.java
---
@@ -65,7 +71,9 @@ public void write(String sourceType, Configurations
configurations, List<Tuple>
}
UpdateResponse response = solr.add(document);
}
- solr.commit(getCollection(configurations));
+ if (shouldCommit) {
+ solr.commit(getCollection(configurations));
+ }
}
--- End diff --
I think in solrconfig.xml the autoSoftCommit just needs to be set to
something:
https://github.com/apache/incubator-metron/pull/67/files#diff-1a81ac5587a67fc61fda38750c61ffa3R195
If you can tolerate some amount of delay from when new documents are added
to when they are visible in a search, then maybe 60 seconds would be a good
starting point?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---