Magento – Magento2 Search Issues

frontendmagento2search

Using Magento 2.1.10

The search part of Magento 2 seems quite buggy. I have a product titled "abc with xyz".

  1. When I search "abc", the product gets displayed but its pushed in between the collection, with several items appearing before it, which does not even have "abc" in their names. I researched and adjusted the search weights and i still get the same result, no effect at all.
  2. When I search "abc lights", the result is similar to point 1
  3. When I search "with", I do not see the product listed. Other products which are irrelevant gets displayed

How can i search the products by NAME only. I have tried disabling the searchable for all the other Attributes. in this case when i search "with", I get no result at all.

I have already tried changing the query clause to "must" instead of "should", but it still does not work

If possible, can someone please let me know where can I find the query in the code for it.

Best Answer

I know this might not answer your question in 100% but I can't recommend enough to use the elasticsearch.

It improves the quality of search for Magento 2.

There is a free extension you can use. You can find it here: https://github.com/Smile-SA/elasticsuite