<div dir="ltr"><div><div><div><div><div><div>Dear <span name="Earnie Boyd" class="">Earnie Boyd<br></span></div><div><span name="Earnie Boyd" class="">Thanks for response.<br><br></span></div><span name="Earnie Boyd" class="">I have gone through those few times. These are links, that says how to setup and get it to work drupal/solr stuff.<br>
</span></div><span name="Earnie Boyd" class="">However it does not give much insight how to do reset multi-value fields in index.<br><br></span></div><span name="Earnie Boyd" class="">Best Regards<br></span></div><span name="Earnie Boyd" class="">Kamal<br>
</span></div><span name="Earnie Boyd" class="">Net Cloud Systems<br></span></div><span name="Earnie Boyd" class="">Bangalore-08<br></span></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 25, 2013 at 4:45 PM, Earnie Boyd <span dir="ltr">&lt;<a href="mailto:earnie@users.sourceforge.net" target="_blank">earnie@users.sourceforge.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Does this help? <a href="http://bit.ly/19oifGx" target="_blank">http://bit.ly/19oifGx</a><br>
<br>
I expect the silence is due to the lack of individuals with experience<br>
in the combination on this list.<br>
<br>
Earnie<br>
<div><div class="h5"><br>
On Tue, Jun 25, 2013 at 6:57 AM, Kamal Palei &lt;<a href="mailto:palei.kamal@gmail.com">palei.kamal@gmail.com</a>&gt; wrote:<br>
&gt; Many times I have observed when there is a query regarding drupal and<br>
&gt; apachesolr, the drupal mailing list is almost silent. If it is only drupal<br>
&gt; fine, we can do R&amp;D, lot of books, mailing list support, we can get some<br>
&gt; insight. If it is only solr, still we can get help from books, mailing lists<br>
&gt; etc and can proceed.<br>
&gt;<br>
&gt; When it comes to drupal and apachesolr I do not see any good book, not much<br>
&gt; help from mailing list.., its almost simple issues takes very long time to<br>
&gt; resolve.<br>
&gt;<br>
&gt; Various search options, I could not get it done through apachesolr module,<br>
&gt; end up writing custom code to do complex searches (like get the documents<br>
&gt; having mandatory keyword1, keyword2, keyword3 AND optional keywords<br>
&gt; keyword4, keyword5, keyword6 and NOT HAVING keyword keyword7, keyword8 and<br>
&gt; much more....)<br>
&gt;<br>
&gt; Still now I was doing indexing part using apache solr, Now I have a<br>
&gt; requirement, how do we reset the value of a multi-value field in index. I am<br>
&gt; sure, this can be done with few lines of code, but we do not have relevant<br>
&gt; document, or less users work on it  or whatever reason it is definitely a<br>
&gt; pain point....<br>
&gt;<br>
&gt; I request, somebody good at apachesolr module probably write a good book and<br>
&gt; put in packt publish or amazon.., atleast we will have some reference book<br>
&gt; where can get sample example codes.. ,<br>
&gt;<br>
&gt; Best Regards<br>
&gt; Kamal<br>
&gt; Net Cloud Systems<br>
&gt; Bangalore<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Mon, Jun 24, 2013 at 7:18 PM, Kamal Palei &lt;<a href="mailto:palei.kamal@gmail.com">palei.kamal@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Dear All<br>
&gt;&gt; I have added a multi value field in schema file (say skillset). In my<br>
&gt;&gt; _apachesolr_index_document_build hook,   I get all the values of field and<br>
&gt;&gt; do  add to $document using addField api. With this values are indexed and I<br>
&gt;&gt; can search, I get the search result perfect.<br>
&gt;&gt;<br>
&gt;&gt; Just for example purpose, say field name is skillset (it&#39;s a multi value<br>
&gt;&gt; field).<br>
&gt;&gt;<br>
&gt;&gt; Say initially I added, Java, PHP, MySQL, Drupal, C++ as skill sets to<br>
&gt;&gt; skillset field as separate separate values.<br>
&gt;&gt;<br>
&gt;&gt; If I search for PHP + MySQL + C++, I get this document. So far so good.<br>
&gt;&gt;<br>
&gt;&gt; Say after 1 month, user came and removed C++ skill set. Then in index, for<br>
&gt;&gt; skillset field the corresponding change should happen. That is first all old<br>
&gt;&gt; values should be removed, next Java, PHP, MySQL, Drupal should added only.<br>
&gt;&gt;<br>
&gt;&gt; Today I do not know how to remove a field&#39;s old values, Can somebody help<br>
&gt;&gt; me to find out how do I remove old datas for that particular field<br>
&gt;&gt; (skillset). Today what is happening, I go and add again. Now the resultant<br>
&gt;&gt; data for skillset becomes Java, PHP, MySQL, Drupal, C++, ava, PHP, MySQL,<br>
&gt;&gt; Drupal. Hence if I search c++, I get this document in search which is wrong.<br>
&gt;&gt;<br>
&gt;&gt; Please somebody help me or give me pointer how to delete the old data for<br>
&gt;&gt; a field in index.<br>
&gt;&gt;<br>
&gt;&gt; Please note that in case of single-value field this issue would not arsie.<br>
&gt;&gt;<br>
&gt;&gt; Thanks<br>
&gt;&gt; kamal<br>
&gt;&gt; Net Cloud Systems<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
</div></div>&gt; --<br>
&gt; [ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Earnie<br>
-- <a href="https://sites.google.com/site/earnieboyd" target="_blank">https://sites.google.com/site/earnieboyd</a><br>
--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</font></span></blockquote></div><br></div>