How would I can configure M2/ElasticSearch and being able to do a partial search by SKU?

Searching for '12345' would find SKU XX12345.

Any solution to change elastic search query or SKU attribute setting to make it work ? I think elastic already checking in product name with like statement then it can not do same with SKU ?

1 Answer 1


read this i think the answer is here :


You can watch this Module to make a redirect if a product is find by his SKU


  • Thanks, your first link made me understand what is going on and why
    – AP87
    Commented Oct 11, 2022 at 9:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.