: Thanks for the response. My requirement is make sure I detect file if its : already indexed , neglect instead of replacing the existing one.
A trivial way to make Solr reject (ie: actually generate an error, not just ignore) a document that already exists is to use the Optimistic Concurrency update features, with an artificial version of "1". The docs aren't very good about this feature, but it's all spelled out here (and in the links from that issue)... https://issues.apache.org/jira/browse/SOLR-5193 -Hoss