cancel
Showing results for 
Search instead for 
Did you mean: 

How the default Searching is work on Magento 2.3?

How the default Searching is work on Magento 2.3?

Hello there!

 

Could u help me, guys?


I've got a question with Search on default engine - MySQL

There are products in searching results wich got the next coincidences....

1. Product headings.

2. Product description.

3. Product category name (it the name of the category connected to searching query)

4. Product headings at Related Products, Up-Sells, and Cross-Sells under the product card description.

5. Product headings at Configurable products under the product card description.

 

Is everything ok? Or the last two cases are out of results should be?

4 REPLIES 4

Re: How the default Searching is work on Magento 2.3?

Hi @andrii_anderson ,

Magento search works on the product attributes which you enabled for search. Based on that magento indexed that data and show on the frontend while search.

You can set yes/no to the attributes which you want to use in search.
for example: product name, sku, size, color, category etc.

You need to add "Use in Search"=>Yes in attribute settings.

for more info:
https://docs.magento.com/m2/ce/user_guide/stores/attributes-product.html

I hope it will help you!

Re: How the default Searching is work on Magento 2.3?

The kind of problem, that Search is giving me search results with products that not connected to Search query by the Product Attribute.

 

I've got products in results that connected to search query by product names of Configurable products and Crossale products on the page of product in results.df search.png

Re: How the default Searching is work on Magento 2.3?

@andrii_anderson 


Data is indexed in the search tables bases on these attributes. 

Make sure that your catalogsearch indexing is up to date,

or you can do full re-index once using following command.

php bin/magento indexer:reindex

I hope it will help you!

Re: How the default Searching is work on Magento 2.3?

Following to be checked :

1. Use in Search  : Yes

check : https://docs.magento.com/user-guide/stores/attributes-product.html

https://docs.magento.com/user-guide/v2.3/catalog/search-mysql.html

2. Search Engine : Mysql

Check : catalogsearch_fulltext_scope1  where 1 is the store ID

3. Make sure you give weight to the attributes

 

If your data is in catalogsearch_fulltext_scope1  then it should be there in result.