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 3 years, 10 months ago.

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

    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:
    https://www.dropbox.com/s/f4wl700gg82kkl7/Ajax%20Search%20-%20ACF%20problem.mp4?dl=0

    Thanks!!

    #27314
    Ernest Marcinko
    Ernest 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.

    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.