I am having one index which consists 20 fields.The index having 2000 documents into it and I want to delete one field from that index. I don't want to update each document.
Can anyone please tell me how I can remove a field from the index? Is any query for that or any code example for that?
Hi David,
Thanks for your reply, I want to delete a field from all documents which is a part of an array and I don't know the index of the field in that array. So how I delete such a field from all documents by using a script.
Please check following example:
[{
"name":"test",
"value":"John"
},{
"name":"test2",
"value":"Ram"
}]
Here I want to delete field with the name is "test"
Can you please help me into this?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.