Dear Mikhail, Thank you very much for your advice. I have tried, but the realTimeSearcher didn't help... This may looks very silly but: can a commit be called with RunUpdateProcessorFactory? Can I use it twice in a updateRequestProcessorChain? Thank you very much again, Roana
On 22 October 2015 at 13:08, Mikhail Khludnev <mkhlud...@griddynamics.com> wrote: > Hello Roxana, > > I feel it's almost impossible. I can only suggest to commit to make new > terms visible. > There is SolrCore.getRealtimeSearcher() but I never understand what it > does. > > On Thu, Oct 22, 2015 at 1:20 PM, Roxana Danger < > roxana.dan...@reedonline.co.uk> wrote: > > > Hello, > > > > I would like to create an updateRequestProcessorChain that should to be > > executed after a DB DIH. I am extending UpdateRequestProcessorFactory and > > the UpdateRequestProcessor classes. The method processAdd of my > > UpdateRequestProcessor should be able to update the documents with the > > indexed terms associated to a field. Notice that these terms should have > > been extracted with an analyzer before my updateRequestProcessorChain > > processor begins to execute. > > > > The problem I am getting is that at the point where processAdd is > executed > > the field containing the terms has not been filled. To retrieve the > terms I > > am using the SolrIndexSearcher provided during the request > > (req.getSearcher()). However, it seems that this searcher uses only the > > data physically stored and does not consider any of the imported data. > > > > Any idea on how can I access to searcher with all indexed/cached data > when > > the processAdd method is executed? > > > > Thank you very much in advance. > > > > > > -- > Sincerely yours > Mikhail Khludnev > Principal Engineer, > Grid Dynamics > > <http://www.griddynamics.com> > <mkhlud...@griddynamics.com> > -- Roxana Danger | Data Scientist Dragon Court, 27-29 Macklin Street, London, WC2B 5LX Tel: 020 7067 4568 [image: reed.co.uk] <http://www.reed.co.uk/> The UK's #1 job site. <http://www.reed.co.uk/> [image: Follow us on Twitter] <https://twitter.com/reedcouk> <https://www.linkedin.com/company/reed.co.uk> [image: Like us on Facebook] <https://www.facebook.com/reedcouk/> <https://plus.google.com/u/0/+reedcouk/posts> It's time to Love Mondays ยป <http://www.reed.co.uk/lovemondays>