On 3/20/2015 4:03 AM, Toke Eskildsen wrote:
> On Thu, 2015-03-19 at 15:44 +0100, Shawn Heisey wrote:
>> You could in theory write a custom UpdateRequestProcessor that looks for
>> the previous document and merges it in whatever way you desire, so the
>> combined information is what will be indexed, and configure Solr to use
>> that update processor ...but this capability is not available out of the
>> box.
> 
> I have not tried it at all, but I thought 
> https://cwiki.apache.org/confluence/display/solr/Updating+Parts+of
> +Documents
> was doing exactly what you describe?

Atomic Updates are a special syntax, not the same thing as simply
indexing different versions of a document and expecting the search
engine to combine them into a single document.

Assuming the schema meets the Atomic Update requirements, an update
processor could be included with Solr to combine a new document with an
existing document, but I doubt everyone would agree on exactly how to
combine the info.  Within a single document, you might want different
fields to behave in different ways ... some fields might replace the
existing value with the new value, others might add the new value(s) to
a multi-valued field, others might only use the new value if there is no
value in the old document, and so on.

Thanks,
Shawn

Reply via email to