ISearchProvider

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
1 year ago
Hello,

I've developed a custom search provider.
How do i activate it? I see the setting catalogsettings.activesearchprovidersystemname.
Do i set this setting on install to the plugin namespace?
1 year ago
So you have made a search provider plugin ?
What plugin did you use as a template ?
I assume you install the Plugin like any others i.e. Payment or Shipping
1 year ago
I just used one of the other plugins that I built, but this one inherits from ISearchProvider

I manually set "catalogsettings.activesearchprovidersystemname" setting to the System Name of my plugin and restarted the application (and threw a logger in there to let me know it was called) and it is indeed calling my search provider, so i think i figured it out.

I'm guessing to do this properly, one should set the setting "catalogsettings.activesearchprovidersystemname" to the Plugin's System Name on InstallAsync, and clear the setting (assuming it matches your plugin name) on UninstallAsync.
1 year ago
I can see it gets called in here
nopCommerce_4.60.2_Source\src\Libraries\Nop.Services\Catalog\ProductService.cs
And calls the SearchProductsAsync in your plugin
Set a Breakpoint in there to see if it is called
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.