Priorities not working with custom fields

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

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #27299

    Note that you cannot access the site via url. It is in development. DNS points elsewhere. If you wish to access it, let me know and I’ll send you the IP to redirect your hosts file.

    The problem I’m having is with the priorities section. In the index, I’ve added custom fields, and in the main search it works fine. But the posts referenced by the custom fields do not show up in the priorities filter.

    I’ve made a screen video to show you the problem. It’s here:


    Ernest Marcinko
    Ernest Marcinko


    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:
    I would suggest starting with an extreme change, to see if it changes the order:
    ..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:
    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:
    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.

    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.