Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Adding Custom Fields to the search index
This topic contains 2 replies, has 2 voices, and was last updated by Ernest Marcinko 11 months, 3 weeks ago.
- April 5, 2022 at 3:21 pm #37420
Hello there, it’s me again 🙂
Im trying to insert the custom fields in the index table so the content in those fields is searchable.
The website has many of them so its important for us that the search can find information in these.
We used JetEngine, it has the same procedure when building custom fields like ACF Pro.
Also we used many repeater sections.
In the custom Fields section in index table there are some custom fields to add, but is there a list of all?
Furthermore, those appear to be only the ones that are used on Posts and Pages. Are the taxonomy one anywhere near?
Screenshot Frontend: https://prnt.sc/AOASLWowYgUx
Screenshot Backend: https://prnt.sc/e71SOTBy5D8V
Screenshot JetEngine Settings: https://prnt.sc/e71SOTBy5D8V
Screenshot Index Table Custom Fields: https://prnt.sc/e71SOTBy5D8V
There seem to be just the ones of posts / pages or maybe meta boxes.
Is there any filter or action to add those custom fields to your search?
Just ask if you need anything.
DominikApril 7, 2022 at 10:44 am #37440
Ok, I think it wont work…
Your plugin probably access the postmeta table and not the termmeta table?
Here are the custom fields that I need: https://prnt.sc/SVasWloTjUJf
Does this solution work:
Writing an excerpt in my custom taxonomy description? It should be searchable, shouldn’t it?
Can I somehow bring my custom taxonomies to the front of the search results instead of my product post type?
They are the actual results which we want to offer our user.
Thank you!April 7, 2022 at 1:28 pm #37441
Thank you for the detailed description!
You can enable search in the term metadata here, if you want to.
The order of the mixed results can be set here. To show the taxonomy terms first, use this configuration.Best,
If you like my products, don't forget to rate them on codecanyon :)
You must be logged in to reply to this topic.