FEATURE REQUEST: abstract searching from the product service

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
sorry if this has been suggested before.

it would be great if the search was plugable so we could write our own search provider so that it could be combined with other data sources or simply use different tech such as lucene, raven, elasticsearch etc.
6 years ago
seanrock wrote:
sorry if this has been suggested before.

it would be great if the search was plugable so we could write our own search provider so that it could be combined with other data sources or simply use different tech such as lucene, raven, elasticsearch etc.

I guess this can be done, since there are already some search plugins for  Nop.
6 years ago
Yes that is true but its not plugable as in, there is no ISearchxxxx class that handles search specifically. I haven't seen the code of those plugins but what I'm assuming is being done is the plugin creator probably copying some base code into their plugin library and implementing the search. I've seen this done by the nop folks in nop days in amsterdam but was just hoping for a cleaner method.
6 years ago
Not sure about a better way to implement it. Right now searching is implemented in [ProductLoadAllPaged] stored procedure. It's invoked by "SearchProducts" method of "IProductService". It not just for product search (exact match, full text, etc) but also applies some filtering (e.g. by category, price, etc).

Even if we move it to a new intereface (e.g. ISearchxxxx), then it doesn't change anything. You still will have to override it to implement a custom searching (e.g Lucene).

Any certain ideas or suggestions on how to implement it?
6 years ago
Andrei

I'm going to give this some thought and reply on this thread.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.