Perhaps an atomic update that only changes the fields you want to change? -Greg
On Fri, Aug 23, 2013 at 4:16 AM, Luís Portela Afonso <meligalet...@gmail.com> wrote: > Hi thanks by the answer, but the uniqueId is generated by me. But when solr > indexes and there is an update in a doc, it deletes the doc and creates a new > one, so it generates a new UUID. > It is not suitable for me, because i want that solr just updates some fields, > because the UUID is the key that i use to map it to an user in my database. > > Right now i'm using information that comes from the source and never chages, > as my uniqueId, like for example the guid, that exists in some rss feeds, or > if it doesn't exists i use link. > > I think there is any simple solution for me, because for what i have read, > when an update to a doc exists, SOLR deletes the old one and create a new > one, right? > > On Aug 23, 2013, at 12:07 PM, Erick Erickson <erickerick...@gmail.com> wrote: > >> Well, not much in the way of help because you can't do what you >> want AFAIK. I don't think UUID is suitable for your use-case. Why not >> use your <uniqueId>? >> >> Or generate something yourself... >> >> Best >> Erick >> >> >> On Thu, Aug 22, 2013 at 5:56 PM, Luís Portela Afonso <meligalet...@gmail.com >>> wrote: >> >>> Hi, >>> >>> How can i prevent solr from update some fields when updating a doc? >>> The problem is, i have an uuid with the field name uuid, but it is not an >>> unique key. When a rss source updates a feed, solr will update the doc with >>> the same link but it generates a new uuid. This is not the desired because >>> this id is used by me to relate feeds with an user. >>> >>> Can someone help me? >>> >>> Many Thanks >