I'm currently updating a Solr instance from 5.5 to 9.4 (and to solr cloud).
More precisely, I'm starting with base config files from 9.4 and updating
it to be equivalent to one used for 5.5

However, I have run into an issue with the unique key, and I cannot see
what the issue is. We expect the id to be generated if not provided in the
document, yet documents without ids are instead (on 9.4) complaining about
the id being missing.

In the solr config:

<updateProcessor class="solr.UUIDUpdateProcessorFactory" name="uuid"/>

<updateRequestProcessorChain name="add-unknown-fields-to-the-schema" default
="${update.autoCreateFields:false}"

processor="uuid
,version-check,timestamp,remove-blank,parse-boolean,parse-long,parse-double,parse-date,maxPrice,minPrice"
>

<processor class="solr.LogUpdateProcessorFactory"/>

<processor class="solr.DistributedUpdateProcessorFactory"/>

<processor class="solr.RunUpdateProcessorFactory"/>

</updateRequestProcessorChain>

In the managed-schema:

<field name="id" type="string" indexed="true" stored="true" required="true"
multiValued="false" />

<uniqueKey>id</uniqueKey>

As far as I can tell, that is all standard. So why isn't the unique key
being generated?

Regards
David Driver

Reply via email to