lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ксения Баталова <batalova...@gmail.com>
Subject Solr Atomic Updates by Query
Date Thu, 04 Jun 2015 09:49:15 GMT
Hi!

I have one more question about atomic updates in Solr (Solr 4.4.0).
Is it posible to generate atomic update by query?
I mean I want to update those documents in which IDs contain some string.
For example, index has:
Doc1, id="123|a,b"
Doc2, id="123|a,c"
Doc3, id="345|a,b"
Doc4, id="345|a,c,d".

And if I don't want to generate all IDs to update, but I know that
necessary IDs start with "123".
I tried to generate query something like that (using *):

{"id":"123|*",
 "price":{"set":99}
}

But in result the document with id="123|*" was added.
Can I do this somehow?

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Best regards,
Batalova Kseniya

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