cancel
Showing results for 
Search instead for 
Did you mean: 

How to Override a Bean in Solr Search Subsystem?

ephrmntr
Champ in-the-making
Champ in-the-making

Hi everyone,

I need some help with overriding a specific bean in the Solr search subsystem.

In my project, I need to modify certain query parameters in the solrQueryHTTPCLient class, so I’m trying to override the search.solrQueryHTTPCLient bean defined in solr-search-context.xml and change its class to my custom implementation.

I’ve attempted to override the bean in custom-web-context.xml, but it didn’t work. From what I understand, this is likely because the search subsystems use their own application contexts, which might be preventing the override from taking effect.

Could someone guide me on the correct approach to solve my task? Any help would be much appreciated!

Thanks!

1 REPLY 1

angelborroy
Community Manager Community Manager
Community Manager