lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Heisey <apa...@elyograg.org>
Subject Re: SolrCloud indexing
Date Sun, 10 May 2015 03:37:39 GMT
On 5/9/2015 8:41 PM, Bill Au wrote:
> Is the behavior of document being indexed independently on each node in a
> SolrCloud cluster new in 5.x or is that true in 4.x also?
> 
> If the document is indexed independently on each node, then if I query the
> document from each node directly, a timestamp could hold different values
> since the document is indexed independently, right?
> 
> <field name="timestamp" type="date" indexed="true" stored="true"
> default="NOW" />

SolrCloud has had that behavior from day one, when it was released in
version 4.0.  You are correct that it can result in a different
timestamp on each replica if the default comes from schema.xml.

I am pretty sure that the solution for this problem is to set up an
update processor chain that includes TimestampUpdateProcessorFactory to
populate the timestamp field before the document is distributed to each
replica.

https://cwiki.apache.org/confluence/display/solr/Update+Request+Processors

Thanks,
Shawn


Mime
View raw message