This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Priorities not working with custom fields

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Priorities not working with custom fields Reply To: Priorities not working with custom fields

#27314
Ernest MarcinkoErnest Marcinko
Keymaster

Hi,

Thank you for the details, it helps a lot.

Individual priorities can not have conditional rulesets, so if you increase a priority for a result, then it is always prioritized, when matched. It is good for cases when you want to display a certain item first. I am not sure, if this is what you want here. The reason you don’t see the item when searching “engineer” is, that the search on that page is only a simple title search, to find the items by their titles for a quick configuration – it does not use any custom configuration.

I feel you rather want to increase the relevance of custom field matches, so that keywords matching custom field would gain higher positions. For that, you will have to experiment with the relevance options here: https://i.imgur.com/xR79ZvY.png
I would suggest starting with an extreme change, to see if it changes the order: https://i.imgur.com/MvPwjix.png
..and then gradually increasing/decreasing the values, and observing the change. If I had to guess, then something like this could be possible “good” configuration: https://i.imgur.com/pSsnkW7.png
This is a generic solution to increase relevance agains custom fields.

However, if you only want to prioritize some results for specific conditions, like: when typing in “engineer” you want to prioritize results, that match a custom field, that has “engineer” in it – then you can use the group priorities feature. In your case, a rule group could look like this: https://i.imgur.com/EtNq9mq.png
Please mind, I only recommend this, if you have only a few specific rules – as adding too many may cause a significant slow on the search response.