Those 3 are part of default  chain. So if you stop using schemaless one,
you get them anyway.

https://solr.apache.org/guide/solr/latest/configuration-guide/update-request-processors.html#default-update-request-processor-chain

If you define a different custom chain, I think you need to add them
manually though.

Also, when you disable schemaless, make sure you don't have implicit
conversions happening that the chain also provides. E. G. Date as text gets
converted to real date. If you do, you may want to remove just schema
generation part or create a custom chain with only bits you need.

Regards,
    Alex

On Wed., Oct. 12, 2022, 7:55 a.m. Vincenzo D'Amore, <v.dam...@gmail.com>
wrote:

> Hi all,
>
> TL;DR
>
> Does anyone know what's the responsibility of
> DistributedUpdateProcessorFactory?
> This is what I found in the source code:
>
> // NOT mt-safe... create a new processor for each add thread
> // TODO: we really should not wait for distrib after local? unless a
> certain replication factor is
> // asked for
>
>
> https://github.com/apache/solr/blob/main/solr/core/src/java/org/apache/solr/update/processor/DistributedUpdateProcessor.java
>
> ---
> Long version
>
> Today I realized that in SolrCloud when disabling the schemaless mode, we
> are going to disable also:
>
> - LogUpdateProcessorFactory,
> - DistributedUpdateProcessorFactory,
> - RunUpdateProcessorFactory
>
> Please look at this snipped taken from solrconfig.xml default
> configuration:
>
>   <updateRequestProcessorChain name="add-unknown-fields-to-the-schema"
> default="${update.autoCreateFields:false}"
>
>
>  
> processor="uuid,remove-blank,field-name-mutating,parse-boolean,parse-long,parse-double,parse-date,add-schema-fields">
>     <processor class="solr.LogUpdateProcessorFactory"/>
>     <processor class="solr.DistributedUpdateProcessorFactory"/>
>     <processor class="solr.RunUpdateProcessorFactory"/>
>   </updateRequestProcessorChain>
>
> Those processors don't seem to be related to the schemaless mode, in
> particular DistributedUpdateProcessorFactory.
>
> So I'm curious to understand what it does, and why it has to be activated
> when schemaless mode is on.
>
> Best regards,
> Vincenzo
>
>
> --
> Vincenzo D'Amore
>

Reply via email to