Re: Same field name cannot be added in newer Solr versions

2019-01-21 Thread Arunan Sugunakumar
@Jorn Franke In the link you shared, both replace and delete methods returns an exception if the field is not already there. I am wondering how to handle both cases mentioned below. - When a fresh collection is created, fieldnames and fieldtypes would not already exist. Hence they have to b

Re: Same field name cannot be added in newer Solr versions

2019-01-20 Thread Shawn Heisey
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-

Re: Same field name cannot be added in newer Solr versions

2019-01-20 Thread Jörn Franke
You can ask Solr to replace it: https://lucene.apache.org/solr/guide/7_6/schema-api.html Note: it throws an error if it does not exist. Or you can delete (if exist) and add it. > Am 20.01.2019 um 04:47 schrieb Arunan Sugunakumar : > > Hi, > > I used SolrJ 7.2.1 and Apache Solr 7.2.1 in one of m