Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search "within the word" is NOK when we search with expression within the word at the position 16 #12407

Closed
khouloudbelguith opened this issue Feb 1, 2019 · 1 comment · Fixed by #14587

Comments

@khouloudbelguith
Copy link
Contributor

@khouloudbelguith khouloudbelguith commented Feb 1, 2019

Describe the bug

In the BO => Shop Parameters => Search page, enable the option "Search within word", With this option enabled, it gives the good result if you search for anything contained in the word.

Try to create a new product with this name "referenceupdatedtoday" > 16 characters.

In the FO, try to search with "today", the product will not be found, also, if you try to search with this "eferenceupdated", it will not be found.
If we try to search with "eferenceupdate" => ok
In fact, the Search within word action is NOK when we use an expression withen the word more than the positon 16.

To Reproduce
Steps to reproduce the behavior:

  1. Go to BO => Shop Parameters => Search page
  2. Enable the option "Search within word"
  3. Create a new product with this name "referenceupdatedtoday"
  4. Go to the FO => try to search with "today", the product will not be found, also, if you try to search with this "eferenceupdated", it will not be found.

Screenshots

Additionnal information
PrestaShop version: 1.7.4.4 / 1.7.5.0
PHP version:7.1

@matthieu-rolland

This comment has been minimized.

Copy link
Contributor

@matthieu-rolland matthieu-rolland commented Jul 11, 2019

I fixed this issue by increasing the maximum search word's length in database and in the code.
This is not ideal, so I created a feature request suggesting a more complete solution:

#14588

@sarahdib sarahdib added Fixed and removed To Do labels Jul 17, 2019
@sarahdib sarahdib added this to Backlog in PrestaShop 1.7.7 via automation Jul 17, 2019
@sarahdib sarahdib added this to the 1.7.7.0 milestone Jul 17, 2019
@sarahdib sarahdib moved this from Backlog to To be reviewed in PrestaShop 1.7.7 Jul 17, 2019
@sarahdib sarahdib moved this from To be reviewed to To be merged in PrestaShop 1.7.7 Jul 17, 2019
PrestaShop 1.7.7 automation moved this from To be merged to Done Jul 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Linked pull requests

Successfully merging a pull request may close this issue.

3 participants
You can’t perform that action at this time.