We simply process a queue of updates from a database table. Some of the
updates are deletes, some are adds. Sometimes you can have many deletes in a
row, sometimes many adds in a row, and sometimes a mixture of deletes and
adds. We're trying to batch our updates and were hoping to avoid having to
manage separate files for adds and deletes.

Perhaps a single top-level tag e.g. <update>....</update> could contain
deletes and adds in the same document?

Thanks,

Brendan


hossman wrote:
> 
> 
> it's inherently bad from the XML spec's point of view -- as in the XML 
> spec says you can only have one "top level" tag per "XML document".
> 
> incidently: what is your use case for even trying this?  you kow that with 
> a uniqueKey declaration you don't need to delete a doc before adding a new 
> one withthe same uniqueKey right? ... you cna just add them all.
> 
> we may/should allow you to specify multiple <id> or <query> blocks inside 
> of a delete, but i don't imagine anyone is plannining on adding syntax to 
> support <delete> and <add> ops in the same update command ... they are 
> radically different. 
> 
> 
> -Hoss
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/start-tag-not-allowed-in-epilog-tf4602869.html#a13143348
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to