Re: Updating data

2013-02-18 Thread Jack Krupansky
Use "set" instead of "add". See: http://wiki.apache.org/solr/UpdateJSON#Atomic_Updates -- Jack Krupansky -Original Message- From: anurag.jain Sent: Monday, February 18, 2013 6:09 AM To: solr-user@lucene.apache.org Subject: Re: Updating data Hi, i got a problem

Re: Updating data

2013-02-18 Thread anurag.jain
Hi, i got a problem. problem is i have json file [ { "id":"5", "is_good":{"add":"1"} }, { "id":"1", "is_good":{"add":"1"} }, { "id":"2", "is_good":{"add":"1"} }, { "id":"3", "is_good":{"add":"1"} } ] now due to stopping o

Re: Updating data

2013-02-08 Thread anurag.jain
i have question what if id not exits in previous data ? ? like [ { "id":"6", "is_good":{"add":"1"} } ] -- View this message in context: http://lucene.472066.n3.nabble.com/Updating-data-tp4038492p4039190.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Updating data

2013-02-07 Thread anurag.jain
this was my previous data.[ { "id":"1", "movie_name":"Twelve Monkeys", "genre":[ "Children's", "Comedy", "Drama", "Sci-Fi" ], "release_year":"1995", "url":"http://us.imdb.com/M/title-exact?Twelve%20Monkeys%20(1995)", "

Re: Updating data

2013-02-06 Thread Alexandre Rafalovitch
Solr Atomic update requires all fields to be stored. Were they? Regards, Alex. Personal blog: http://blog.outerthoughts.com/ LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch - Time is the quality of nature that keeps events from happening all at once. Lately, it doesn't seem to be wor

Re: Updating data

2013-02-06 Thread anurag.jain
Hi, Thanks for reply. But i was doing same thing but whenver i tried to update previous field automatically delete. :( I am not getting why ? -- View this message in context: http://lucene.472066.n3.nabble.com/Updating-data-tp4038492p4038833.html Sent from the Solr - User mailing list archiv

Re: Updating data

2013-02-05 Thread Dikchant Sahi
If I understand it right, you want the json to only the new fields and not the field that has already been indexed/stored. Check out Solr Atomic updates. Below are some links which might help. http://wiki.apache.org/solr/Atomic_Updates http://yonik.com/solr/atomic-updates/ Remember, it requires t