By default the ecom search filter has some logic which product match the search criteria.
Example:
Product: Whitefish
When you search on "white" or "fish" this product is not found.
Can the search filter be configured to also include results which match part of the word?
Developer forum
E-mail notifications
Search filter matching on part of word possible?
Remi Muller
Posted on 09/01/2012 10:36:54
Replies
Remi Muller
Posted on 12/01/2012 15:06:45
Excuse me for bumping. FYI topics with 0 replies dropped to the bottom.
Pavel Volgarev
Posted on 16/01/2012 09:54:19
This post has been marked as an answer
Hi Remi,
The logic is the following: if any products with the word "white" can be found, no search is performed for products that has word starting with "white" (e.g. "Whitefish"). Regarding searches like "ends with" (e.g. "fish" in "Whitefish": this is unfortunately not possible (see Apache Lucene - Query Parser Syntax),
We actually have a number of requests for improving this functionality (adding an ability to "tell" the filter to always perform a wildcard search). I will try to find a work item and rise up its priority (or create one if it doesn't exist).
This functionality will be available in the next service release (mid. February).
P.S. Typing "white*" should give you products that have words starting with "white".
-- Pavel
The logic is the following: if any products with the word "white" can be found, no search is performed for products that has word starting with "white" (e.g. "Whitefish"). Regarding searches like "ends with" (e.g. "fish" in "Whitefish": this is unfortunately not possible (see Apache Lucene - Query Parser Syntax),
We actually have a number of requests for improving this functionality (adding an ability to "tell" the filter to always perform a wildcard search). I will try to find a work item and rise up its priority (or create one if it doesn't exist).
This functionality will be available in the next service release (mid. February).
P.S. Typing "white*" should give you products that have words starting with "white".
-- Pavel
Votes for this answer: 0
Remi Muller
Posted on 16/01/2012 10:49:00
Looking forward to the next service release. I am aware of the white*, thanks. We can not catch the *fish (yet) :)
FYI, you probably already know but i did find this:
It should be possible to allow leading wildcards but it is not recommended for performance. If you could make it configurable that would be best.
Pavel Volgarev
Posted on 16/01/2012 14:21:54
Hi Remi,
Thanks for the link - actually I read about this functionality before but completely forgot that it was possible :-)
-- Pavel
Thanks for the link - actually I read about this functionality before but completely forgot that it was possible :-)
-- Pavel
You must be logged in to post in the forum