Search within "Post Object" custom field

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Search within "Post Object" custom field

This topic contains 7 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 2 weeks, 5 days ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #46907
    alightmedia
    alightmedia
    Participant

    I have Ajax Search Pro searching a directory of Doctors. One of the custom fields is set up in ACF, and is a “Post object” field.

    Ajax Search Pro does not return the correct results when users type in the titles of these posts into the search bar. In fact, it doesn’t acknowledge that there are any results when using that post field information as a query.

    We have other text-based fields that are set up in ACF that Ajax Search Pro is able to pull results from, but it does not seem to work with
    Post Object fields. I have the “Search All Custom FIelds” selected as mentioned in this article:

    https://documentation.ajaxsearchpro.com/general-settings/search-in-custom-fields

    Can you shed some light on this? Thank you.

    #46912
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    Thanks for the details, it helps a lot!

    Post object fields are stored by reference, so they have to be indexed first. They are a bit tricky, but still searchable.

    For that, make sure to configure the index table engine, generate the index and swtich the search to the on the search instance settings. With that, the post object field titles should be picked up and stored in the search database.

    Best,
    Ernest Marcinko

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


    #46919
    alightmedia
    alightmedia
    Participant

    Hmm, that didn’t seem to work. Would you mind logging in and taking a look?

    • This reply was modified 2 weeks, 5 days ago by alightmedia alightmedia.
    #46921
    alightmedia
    alightmedia
    Participant
    You cannot access this content.
    #46932
    alightmedia
    alightmedia
    Participant

    It seems that it works in 4.26.2, but doesn’t work in 4.26.3

    #46933
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    I think I know why, I was just doing some debugging during your last message.

    It seems to be related to another issue related to the index table, it was reported just yesterday. Luckily I have already found a patch, so a quickfix will be available in 2-3 days for sure.

    Can you keep 4.26.2 until then? I can suggest a modification for 4.26.3, but it’s going to be patched very soon either way.

    Best,
    Ernest Marcinko

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


    #46934
    alightmedia
    alightmedia
    Participant

    That’s fine. Thank you for looking into this!

    #46935
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    You are welcome 🙂

    Best,
    Ernest Marcinko

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


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

You must be logged in to reply to this topic.