lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Debraj Manna <subharaj.ma...@gmail.com>
Subject Re: Providing own _version field in solr doc
Date Thu, 24 Dec 2015 03:12:19 GMT
Thanks Shawn :) .
On Dec 24, 2015 1:12 AM, "Shawn Heisey" <apache@elyograg.org> wrote:

> On 12/23/2015 12:25 PM, Debraj Manna wrote:
> > Thanks Shawn. But after making the below changes (making
> versionable_chain
> > as default) all my update,inserts & deleteByQuery are failing with the
> > error "*Error from server at http://localhost:8888/solr/discovery
> > <http://localhost:8888/solr/discovery>: DistributedUpdateProcessor must
> > follow DocBasedVersionConstraintsProcessor*"
> >
> > <updateRequestProcessorChain name="versionable_chain" default="true">
> >     <processor class="solr.DocBasedVersionConstraintsProcessorFactory">
> >       <str name="versionField">doc_version</str>
> >       <bool name="ignoreOldUpdates">false</bool>
> >     </processor>
> >   </updateRequestProcessorChain>
>
> I believe that the standard update processor chain looks like this:
>
>   <processor class="solr.DistributedUpdateProcessorFactory" />
>   <processor class="solr.RunUpdateProcessorFactory" />
>   <processor class="solr.LogUpdateProcessorFactory" />
>
> I think that when you define a processor chain but do not include these
> default processors, then they are automatically added in a predetermined
> order and what you end up with is this:
>
>   <processor class="solr.DistributedUpdateProcessorFactory" />
>   <!-- Your custom processor list goes here -->
>   <processor class="solr.RunUpdateProcessorFactory" />
>   <processor class="solr.LogUpdateProcessorFactory" />
>
> The error message you are getting suggests that this order will not work
> and what you actually need to do is the following:
>
> <updateRequestProcessorChain name="versionable_chain" default="true">
>   <processor class="solr.DocBasedVersionConstraintsProcessorFactory">
>     <str name="versionField">doc_version</str>
>     <bool name="ignoreOldUpdates">false</bool>
>   </processor>
>   <processor class="solr.DistributedUpdateProcessorFactory" />
>   <processor class="solr.RunUpdateProcessorFactory" />
>   <processor class="solr.LogUpdateProcessorFactory" />
> </updateRequestProcessorChain>
>
> Thanks,
> Shawn
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message