On 4/17/2018 8:15 AM, Kojo wrote:
> I am trying schemaless mode and it seems to works very nice, and there is
> no overhead to write a custom schema for each type of collection that we
> need to index.
> However we are facing a strange problem. Once we have created a collection
> and indexed data on that collection, if we need to make some change on data
> (change data type), even if we delete the collection, restart all solr
> instances, create the collection again, the new auto schema is not
> recreated and the former auto generated schema is still there.
>
> The only workaround that i have found to solve this, is to create a new
> collection with a different name.
>
> Is this a known bug on Solr 6.6 or am I missing something?

We recommend NOT using schemaless mode in production.  It is not always
able to make the right guess for the fieldType of the data it
encounters.  In production, it's generally better to have Solr throw an
error when it encounters unknown fields, and then for you to manually
adjust the schema with the fieldType that is correct for the new field. 
If the wrong guess is made and you have to change the schema, then you
will have to re-index.

Without knowing precisely what steps/commands/requests you used for all
of the actions you have described, it is very difficult to know if
there's a problem with Solr or if one of the steps taken was incorrect. 
Can you fill in the details?

Thanks,
Shawn

Reply via email to