On 1/19/2019 8:47 PM, Arunan Sugunakumar wrote:
I used SolrJ 7.2.1 and Apache Solr 7.2.1 in one of my projects. Prior to
data indexing, I create the fields and field types using SchemaAPI in
SolrJ. If a same field name is repeated, solr did not return an exception,
but simply ignored it (or over-rid it). But I tried Solr 7.6.0 with my
project and it returned exceptions. I went over the Solr logs and found the
below error. It seems that I cannot create a field again and again. I would
like to know whether I should do something different to overcome this
problem.
I'm guessing the changed behavior is a result of this issue, first
released in 7.3.0:
https://issues.apache.org/jira/browse/SOLR-11631
The API call to add a field very likely failed when the field already
existed in 7.2.1, but Solr was returning a zero status, which would tell
the client that it succeeded. Your program would never know there was a
problem.
Thanks,
Shawn