@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
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-
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