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 6 months, 2 weeks ago.
- AuthorPosts
- February 12, 2024 at 10:43 pm #46907
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.
February 13, 2024 at 2:14 pm #46912Hi,
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 :)
February 13, 2024 at 4:04 pm #46919Hmm, that didn’t seem to work. Would you mind logging in and taking a look?
-
This reply was modified 6 months, 2 weeks ago by
alightmedia.
February 13, 2024 at 4:24 pm #46921You cannot access this content.February 13, 2024 at 5:51 pm #46932It seems that it works in 4.26.2, but doesn’t work in 4.26.3
February 13, 2024 at 5:55 pm #46933I 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 :)
February 13, 2024 at 5:59 pm #46934That’s fine. Thank you for looking into this!
February 13, 2024 at 6:01 pm #46935You are welcome 🙂
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
-
This reply was modified 6 months, 2 weeks ago by
- AuthorPosts
You must be logged in to reply to this topic.