magento / magento/community-features
Magento 2 Search won't work when symbols are used
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 46
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Description
### Description (*)
We sell automotive tires. Most of this products name come with symbols:
-7.50R16
-11.00R20
-185/60R14
When We try to search by products name most of the time results are inaccurate or no results are shown.
It seems to me when you search usign symbols magento reads them as a separation. The thing is with some sizes like 7.50 or 11.00 it will attempt to search EITHER 7 OR 50 .... 11 OR 00 and by default Magento comes with minimum search 3 characters. Even when We modify this to 2 or 1 character it won't work as expected (inaccurate results).
### Expected behavior (*)
It should interpret symbols as text so When you search something like 7.50 it should find products where a dot is in the name like if it where a word.
### Benefits
Better search results.
### Additional information
This issue is happening to me in Magento 2.2.8, PHP7.1 and MySql 5.7.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files or tests; begin by reproducing Magento 2.2.8 product searches for names such as 7.50R16 and 185/60R14 on PHP 7.1/MySQL 5.7. Trace how search tokenizes symbols and applies minimum search length. Done means symbol-containing queries return the matching products without inaccurate alternatives, with coverage for the listed examples.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- mysql, php
- Domain
- backend, search
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100