Atomic update. For example:
curl http://localhost:8983/solr/update?commit=true \
-H "Content-Type: application/json" -d '
[{"id": "text-1", "text_ss": {"set": null}}]'
(From the book!)
That's for one document. If you want to do that for all documents, you will
have to iterate yourself.
But... it sounds like you have arbitrary, unknown field names (dynamic). If
you want to delete them, you will need to know the field name. You will have
to write a loop that reads every document, figures out the dynamic field
name, and then you can update with atomic update.
You may want to rethink your data model.
-- Jack Krupansky
-----Original Message-----
From: anurag.jain
Sent: Thursday, June 27, 2013 8:28 AM
To: solr-user@lucene.apache.org
Subject: how to delete on column of a doc in solr
In my solr schema there is one dynamic field.
<dynamicField name="jobs_*" type="float" indexed="true"
stored="true"/>
So I have one doc value,
docs: [
{
last_name: "Jain",
state_name: "rajasthan",
mobile_no: "234534564621",
id: "4",
jobs_6554: "6554",
},...]
Now I just want to delete one column, means jobs_6554 not the complete doc.
How it can possible in solr.
So after delete, docs will be.
docs: [
{
last_name: "Jain",
state_name: "rajasthan",
mobile_no: "234534564621",
id: "4"
},...]
--
View this message in context:
http://lucene.472066.n3.nabble.com/how-to-delete-on-column-of-a-doc-in-solr-tp4073587.html
Sent from the Solr - User mailing list archive at Nabble.com.