Increase relevancy of SKU field on WooCommerce product

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Increase relevancy of SKU field on WooCommerce product

This topic contains 1 reply, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 5 years ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #13520
    labber
    labber
    Participant

    I want to improve relevancy on my product search in WooCommerce. Currently, if I type a SKU of a product tin it will not show first, how can I make it so the SKU of a product has the highest relevancy?

    #13524
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    Thank you for the proper detaisl!

    I took the opprotunity and logged in to the back-end to check your configuration. I see you have the index table configured correctly, but it was not in use. So this is what I did:
    – first I enabled the index table engine: https://i.imgur.com/pwMllNr.png
    – then, I have also enabled post type ordering, to always show product results first: https://i.imgur.com/0yYyoVL.png
    – and also, I have increased the custom field (including _sku) relevancy weight option: https://i.imgur.com/0L38NNm.png

    This will make sure that if the part number matches in any way, then it’s relevance is boosted up, and also if any other post type matches, the products will come up first.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.