World of Titans
World of Titans

Reputation: 59

Undefined fields issue for Insert/update in Solr6

I am trying to insert/update the solr document into solr collection

"ACCT_ID:"1234"
"ACCOUNT_NAME:"Test",
"ACCT_Address":"",

In Solr5 i am not getting any error if the input/update fields not available in solr schema. for example ACCT_Address is the field which is not available in schema and i am not getting any error.

But in Solr6 i am getting failure error saying that "Error from server undefined field: ACCT_Address".

In our data we might get some invalid fields also

How to fix this issue for solr6? I am connecting using CloudSolrClient with zookeeper host.how to resolve this issue.

client = new CloudSolrClient.Builder().withZkHost(zkHostName).withHttpClient(getHttpClient()).build();

Why is this issue coming in solr6?

Upvotes: 0

Views: 22

Answers (0)

Related Questions