Re: SOLR Prevent solr of modifying fields when update doc

2013-08-25 Thread Luis Portela Afonso
Hi, right now I'm using the link field that comes in any rss entry as my uniqueKey. That was the best solution that I found because in many updated documents, this was the only field that never changes. Now I'm facing another problem. When I want to search for a document with that id or link, beca

Re: SOLR Prevent solr of modifying fields when update doc

2013-08-24 Thread Erick Erickson
bq: 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. right, this is why I was saying that a UUID field may not fit your use case. The _point_ of a UUID field is to generate a unique en

Re: SOLR Prevent solr of modifying fields when update doc

2013-08-24 Thread Luis Portela Afonso
Hi, The uuid, that was been used like the id of a document, it's generated by solr using an updatechain. I just use the recommend method to generate uuid's. I think an atomic update is not suitable for me, because I want that solr indexes the feeds and not me. I don't want to send information to

Re: SOLR Prevent solr of modifying fields when update doc

2013-08-23 Thread Greg Preston
But there is an API for sending a delta over the wire, and server side it does a read, overlay, delete, and insert. And only the fields you sent will be changed. *Might require your unchanged fields to all be stored, though. -Greg On Fri, Aug 23, 2013 at 7:08 PM, Lance Norskog wrote: > Solr

Re: SOLR Prevent solr of modifying fields when update doc

2013-08-23 Thread Lance Norskog
Solr does not by default generate unique IDs. It uses what you give as your unique field, usually called 'id'. What software do you use to index data from your RSS feeds? Maybe that is creating a new 'id' field? There is no partial update, Solr (Lucene) always rewrites the complete document.

Re: SOLR Prevent solr of modifying fields when update doc

2013-08-23 Thread Greg Preston
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 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

Re: SOLR Prevent solr of modifying fields when update doc

2013-08-23 Thread Luís Portela Afonso
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 tha

Re: SOLR Prevent solr of modifying fields when update doc

2013-08-23 Thread Erick Erickson
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 ? Or generate something yourself... Best Erick On Thu, Aug 22, 2013 at 5:56 PM, Luís Portela Afonso wrote: > Hi, > > How can i prevent solr from updat

SOLR Prevent solr of modifying fields when update doc

2013-08-22 Thread Luís Portela Afonso
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