Re: Developing update processor/Query Parser

2020-06-26 Thread Vincenzo D'Amore
Sharing a static object between URP and QParser it's easy. But when the core is reloaded, this shared static object is rewritten from scratch. An old QParser that references that object could have serious problems, inconsistencies, concurrent modification exceptions, etc. On the other hand, trying

Re: Developing update processor/Query Parser

2020-06-26 Thread Vincenzo D'Amore
Hi Gus, thanks for the thorough explanation. Infact, I was concerned about how to hold the shared information (between URP and QParser), for example when a core is reloaded. What happens when a core is reloaded? Very likely I have a couple of new URP/QParser but an older QParser may still be servin

Re: Developing update processor/Query Parser

2020-06-26 Thread Gus Heck
During the request, the parser plugin is retrieved from a PluginBag on the SolrCore object, so it should be reloaded at the same time as the update component (which comes from another PluginBag on SolrCore). If the components are deployed with consistent configuration in solrconfig.xml, any given S

Re: Developing update processor/Query Parser

2020-06-25 Thread Mikhail Khludnev
Hello, Vincenzo. Please find above about a dedicated component doing nothing, but just holding a config. Also you may extract config into a file and load it by SolrResourceLoaderAware. On Thu, Jun 25, 2020 at 2:06 PM Vincenzo D'Amore wrote: > Hi Mikhail, yup, I was trying to avoid putting logic

Re: Developing update processor/Query Parser

2020-06-25 Thread Vincenzo D'Amore
Hi Mikhail, yup, I was trying to avoid putting logic in Solr. Just to be a little bit more specific, consider that if the update factory writes a field that has a size of 50. The QParser should be aware of the current size when writing a query. Is it possible to have in solrconfig.xml file a share

Re: Developing update processor/Query Parser

2020-06-24 Thread Mikhail Khludnev
Hello, Vincenzo. Presumably you can introduce a component which just holds a config data, and then this component might be lookedup from QParser and UpdateFactory. Overall, it seems like embedding logic into Solr core, which rarely works well. On Wed, Jun 24, 2020 at 8:00 PM Vincenzo D'Amore wrot