-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Magento Searching not working well , when a number/digit user with product name #10176
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
Comments
Hi @palvinder03, It's not a bug but rather a limitation of MySQL.
But take into account the notice from MySQL on the top of that page:
Be careful with this change as it may decrease your site performance. |
I use Sphinx search with the Mirasvit extension. But I have the same issue. as long as we use text it uses an AND search. As soon as I search for something with a number in it it changes to an OR search query. Very annoying. It looks like it's not engine related or something. I also talked to Mirasvit about this extensively. They claim to use only AND queries for everything though. |
@igrybkov And if its happen due to to mysql then ajax search should not show proper result, for example i used ajax search my site, it showing accurate result in its search drop down, check in attached screenshot Could you please suggest any idea how we can fix this for our site if possible? |
Hi @Frits1980, On the default MySQL configuration, this case will be definitely reproduced due to the reason described above. It's known and expected behavior. Regarding your case, we're not responsible for 3rd-party extensions and cannot help you with their work. You can talk with extension vendor to help him identify the issue, and they may fix it in their extension or report it to Magento in the manner which is not related to their extension but describes an issue with the Magento itself, and we'll proceed with it as with any general issue report. |
The "Ajax search" is actually not a search at all (if it's the search suggestions functionality which is works on default search input and not something another), but rather a cached search queries with cached search result numbers. It doesn't make a search query and looking for the input phrase in with a "LIKE" query through cached results. Just to clarify, did you make a configuration change? It requires three steps:
|
Hey @palvinder03 what we recommend you to do is to make some customization for your specific business case. For example, you could slightly modify the original Search Phrase provided by user and substitute We already have functionality which changes the original search query. This is how Magento Synonyms are implemented. Also, you can add a searchable attribute, which would be invisible on front-end, thus it would not change your front-end look and feel. So, its content will get to the product index, and there would be possible to find a product based on its content. Also, you could specify high Weight for this attribute, to make it more influential on the result set, if there would be a match by this attribute. Doing all the above you will get next result: |
@igrybkov Thanks for the most obvious answer there is. You're quite a star in helping people. And you apparently didn't read my post very well. It said: I've had extensive contact with Mirasvit about this issue and they looked into it and it's not there issue. So where do you suppose I should go to get any further? Because if everybody in the world would point at someone else shit never gets solved. So please quit giving senseless replies. |
We don't recommend you to change default minimal token size in MySQL configuration because it could lead to performance degradation, as the size of index, depending on your Catalog data could grow drastically. At least you should double check on testing environment before making changes to production |
Thanks for your response, So now result is working fine as expected , Thanks |
1 similar comment
Thanks for your response, So now result is working fine as expected , Thanks |
@palvinder03 you welcome. and whether it satisfies your needs. |
There are a few things that you can try out if Magento's search is not working as expected. Read this article for details: |
Hi,
Magento 2.x search not performing well, when we use any number/digit with the name.
For example, we are selling apple iphone on our site, and so products names are , iPhone 4, iPhone 5, iPhone 6....
And when we search for iPhone 4, it shows all the result related to iPhone not only iPhone 4.
I understand about relevance result, but it should show iPhone 4 first and then rest on...
but it does not matter, either iphone 4, iPhone 5, iPhone 6... It's just searching based on iPhone...
I have tried with text value then it searching well,
--not working fine with numeric and text combination
http://www.nunutz.com/catalogsearch/result/?q=iphone+5
--- working fine if text combination only.
http://www.nunutz.com/catalogsearch/result/?q=Drone+Batteries
Can any one help to sort out this issue?
Thanks
Preconditions
Steps to reproduce
Expected result
Actual result
The text was updated successfully, but these errors were encountered: