Smile-SA / smile-magento-elasticsearch

Magento ElasticSearch Implementation
151 stars 90 forks source link

Search by sku not working #117

Open pervisio opened 7 years ago

pervisio commented 7 years ago

Search by sku is not working at all. Works well if searching by name, category or any other custom attribute.

Using ES 1.7 and Magento 1.9

Sku set as searchable, everything reindex.

What could be the problem?

stefanskotte commented 7 years ago

Works fine for me on ES 1.5.

pervisio commented 7 years ago

Downgraded to 1.5.2. Stil not working. I can see SKU is stored in the index but when searcing there are no results returned.

stefanskotte commented 7 years ago

Seems like a local problem then, I have no problems searching SKU's here

pervisio commented 7 years ago

OK, we were able to get this working by setting search weight to 10 and Use language analysis to No for attribute SKU. It was probably the language analysis fault we were getting no results.

Thanks!

stefanskotte commented 7 years ago

Just a quick finding - If you need exact matches, make sure you set fuzziness value to 0 and not 0.75.

During my tests, I didn't see it affect other types of searches (that I want similar results to).