<div dir="ltr"><div><div><div><div><div><div><div><div><div>Dear All<br></div>I have added a multi value field in schema file (say skillset). In my     <b>_apachesolr_index_document_build</b> hook,   I get all the values of field and do  add to $document using addField api. With this values are indexed and I can search, I get the search result perfect. <br>
<br></div>Just for example purpose, say field name is <b>skillset</b> (it&#39;s a multi value field).<br><br></div>Say initially I added, Java, PHP, MySQL, Drupal, C++ as skill sets to skillset field as separate separate values.<br>
<br></div>If I search for PHP + MySQL + C++, I get this document. So far so good.<br><br></div>Say after 1 month, user came and removed C++ skill set. Then in index, for skillset field the corresponding change should happen. That is first all old values should be removed, next Java, PHP, MySQL, Drupal should added only.<br>
<br></div>Today I do not know how to remove a field&#39;s old values, Can somebody help me to find out how do I remove old datas for that particular field (skillset). Today what is happening, I go and add again. Now the resultant data for skillset becomes Java, PHP, MySQL, Drupal, C++, ava, PHP, MySQL, Drupal. Hence if I search c++, I get this document in search which is wrong.<br>
<br></div>Please somebody help me or give me pointer how to delete the old data for a field in index.<br><br></div><div>Please note that in case of single-value field this issue would not arsie.<br></div><div><br></div>Thanks<br>
kamal<br></div>Net Cloud Systems<br><div><div><div><div><div><br><br><br></div></div></div></div></div></div>