Hello,
Yes we used firstSearcher in solr7. I should have mentionned that we tried
firstSearcher and newSearcher in solr 9, we tried all possibilities we
could think of in solrconfig.xml
Thanks for your answer.
We'll stick to our solution, ie load values in constructor.
Best regards,
Elisabeth
:
:
...
: In solr 7.3.1, function newSearcher was called at startup and we
: loaded values stopwords and startswith in newSearcher, but it doesn't
: work in solr 9.2.1, the function newSearcher is not called at startup
Are you sure you're not confusing the "newSearcher" *EVE
t; during SolrCore init -- and should recieve the args specified in
> solrconfig.xml -- and the parse() will be called each time it is needed.
> If you need information about the SolrIndexSearcher at parse time, you can
> get it from the FunctionQParser (argument) via getReq().getSearcher(
cher at parse time, you can
get it from the FunctionQParser (argument) via getReq().getSearcher()
: Date: Tue, 16 Apr 2024 12:11:41 +0200
: From: elisabeth benoit
: Reply-To: users@solr.apache.org
: To: users@solr.apache.org
: Subject: solr 9.2.1 plugin newSearcher function not called
:
: Hello,
:
Hello,
We have a solr plugin with parameters in solrconfig.xml.
In the plugin, we use the newSearcher function of a class overriding
AbstractSolrEventListener
to read parameters written in solrconfig.xml.
The plugin is working fine but the plugin function newSearcher is not
called, so we cant
Hello,
We have a solr plugin with parameters in solrconfig.xml.
In the plugin, we use the newSearcher function of a class overriding
AbstractSolrEventListener
to read parameters written in solrconfig.xml.
The plugin is working fine but the plugin function newSearcher is not
called, so we cant