Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Search within "Post Object" custom field
- This topic has 7 replies, 2 voices, and was last updated 2 years, 3 months ago by
Ernest Marcinko.
-
AuthorPosts
-
February 12, 2024 at 10:43 pm #46907
alightmedia
ParticipantI 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.
February 13, 2024 at 2:14 pm #46912Ernest Marcinko
KeymasterHi,
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.
February 13, 2024 at 4:04 pm #46919alightmedia
ParticipantHmm, that didn’t seem to work. Would you mind logging in and taking a look?
-
This reply was modified 2 years, 3 months ago by
alightmedia.
February 13, 2024 at 4:24 pm #46921alightmedia
ParticipantYou cannot access this content.
February 13, 2024 at 5:51 pm #46932alightmedia
ParticipantIt seems that it works in 4.26.2, but doesn’t work in 4.26.3
February 13, 2024 at 5:55 pm #46933Ernest Marcinko
KeymasterI 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.
February 13, 2024 at 5:59 pm #46934alightmedia
ParticipantThat’s fine. Thank you for looking into this!
February 13, 2024 at 6:01 pm #46935Ernest Marcinko
KeymasterYou are welcome 🙂
-
This reply was modified 2 years, 3 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.