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
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
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.
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)",
"
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
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
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