Re: SolrPlugin update existing documents in newSearcher()

2019-05-06 Thread Maria Muslea
Thank you so much, this is very helpful. Maria On Thu, May 2, 2019 at 2:39 PM Jan Høydahl wrote: > I think you cannot do that. The callback is sent AFTER a searcher is > opened on the segment, so the index is already there. > Normally you re-index from source if you need changes in schema or >

Re: SolrPlugin update existing documents in newSearcher()

2019-05-02 Thread Jan Høydahl
I think you cannot do that. The callback is sent AFTER a searcher is opened on the segment, so the index is already there. Normally you re-index from source if you need changes in schema or processing. If that is not possible, you must first check if ALL your fields are stored or docValues, if no

Re: SolrPlugin update existing documents in newSearcher()

2019-05-02 Thread Maria Muslea
Yes, I will want to also do that, but initially I need to modify the docs that are already in SOLR, and I thought of doing that at startup. I am able to get the documents that I would like to modify, but the operations for modifying the documents don't seem to be doing anything. Do you see anythin

Re: SolrPlugin update existing documents in newSearcher()

2019-05-02 Thread Jan Høydahl
Hi I don't see your requirement clearly. Sounds like what you really need is an UpdateRequestProcessor where you CAN intercept docs being added and modify them as you wish. https://lucene.apache.org/solr/guide/7_7/update-request-processors.html -- Jan Høydahl, search solution architect Cominve

SolrPlugin update existing documents in newSearcher()

2019-05-01 Thread Maria Muslea
Hi, I have a plugin that extends the AbstractSolrEventListener. I override the newSearcher() method and the plan is to add some extra functionality, namely updating existing documents by setting new values for existing fields as well as adding new fields to the documents. I can see that the plugi