Hi all,

has anyone run into the problem of updating a document field, but only if not already present? TFM @ https://solr.apache.org/guide/8_11/updating-parts-of-documents.html has "set", "add", and "add-distinct" as update commands.

I have a subset of documents where a single-valued field is NULL in the main source table and needs to be filled in from a different query that is kind of a pain to write because of all the "not in"s and "row_index() over"s clauses I'd have to have in it.

It'd be much easier if "set-if-not-exists" update command could be ran on Solr side. Anyone knows if that can be done? (Solr 8.11)

TIA
Dima

Reply via email to