i already indexing 1800000 data in solr index. all files were in json format.

so data was like -

[
{
"id":1,
"first_name":"anurag",
"last_name":"jain",
...
},

{
"id":2,
"first_name":"abhishek",
"last_name":"jain",
...
}, ...
]


now i have to add a field in data like



[
{
"id":1,
"first_name":"anurag",
"last_name":"jain",
"new_field":"xvz",
...
},

{
"id":2,
"first_name":"abhishek",
"last_name":"jain",
"new_field":"xvz",
...
}, ...
]


but i want that :
my json file like that
[
{
"id":1,
"new_field":"xvz"
},
{
"id":2,
"new_field":"xvz"
}
]

so it automatically update in solr like this file is doing.

[
{
"id":1,
"first_name":"anurag",
"last_name":"jain",
"new_field":"xvz",
...
},

{
"id":2,
"first_name":"abhishek",
"last_name":"jain",
"new_field":"xvz",
...
}, ...
]



any solutions ? please reply



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Updating-data-tp4038492.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to