There isn’t a mechanism to update or delete only a subset of a multivalued
field. You would have to supply the full list of values you want to have in
the multivalued field.
You may want to offer it as a suggested improvement.
-- Jack Krupansky
-----Original Message-----
From: deniz
Sent: Thursday, September 20, 2012 1:45 AM
To: solr-user@lucene.apache.org
Subject: deleting a single value from multivalued field
I am working with Solr 4.0 Beta and have a structure like this:
<field name="id" type="int" index="true" />
<field name="str" type="string" multivalued="true" />
I want to update str field, both adding and removing some values... adding
is okay but for deleting a field I couldnt find a way for doing the
reverse...
basically i want to do the one below:
From
<doc>
<int name="id">1</int>
<arr name="str">
<str>val1</str>
<str>val2</str>
<str>val3</str>
</arr>
</doc>
After deleting val3
<doc>
<int name="id">1</int>
<arr name="str">
<str>val1</str>
<str>val2</str>
</arr>
</doc>
any ideas how to this? i have tried remove and delete statements in update
curl request but till now no success...
-----
Zeki ama calismiyor... Calissa yapar...
--
View this message in context:
http://lucene.472066.n3.nabble.com/deleting-a-single-value-from-multivalued-field-tp4009092.html
Sent from the Solr - User mailing list archive at Nabble.com.