Hello all. I would like to know if this topic is related with the search option in NopCommerce. I need to change the search module in order to allow the user to search for a "red car" and the search result would include "red toyota car" and "honda red civic car". Can I do this with lucene.net? Is this the easiest solution? I don't want to implement something too complex because this will probably be in the next release o nopCommerce.
Lucene.NET is an indexed based searcher. It creates an index of your catalog to disk, which can then be search against. It has its own in built algorithms to decide which results are most important which means it provides better search results.
I think nopCommerce is going down the SQL route with searching, which I never find to be as good, but maybe they will get it right.
Lucene.net is not for the novice, but we are going to release our search once its finished.
MS SQL has something called text search, which enables better matching of terms such as red car picking up red toyota car.
However, it doesn't add anything more than that.
With lucene.net we aim to make filtering by price, category, manufacture, and specifications all possible through the search. This would be more difficult and probably more CPU intensive in SQL.
Lets say your search brought back 1000 products. SQL has to select all 10k products, then loop through each product variant and get prices, categories, manufactures and specs. That includes a lot of queries and would be massively slow.
Because lucene indexs the search, all the heavy lifting is already done, meaning you can execute searches very quickly.
Think Google - Google creates an index which gets searched against, hence how it can execute searches in fractions of a second
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.