Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Help me set this up, I’m confused
- This topic has 6 replies, 2 voices, and was last updated 1 month, 3 weeks ago by
David Frank.
-
AuthorPosts
-
April 7, 2026 at 2:42 pm #57218
David Frank
ParticipantI would like to do this, can you help me set it up
* Search behavior:
* – published posts only
* – always search as a phrase
* – ignore straight/curly quotes, even if encoded
*
* Sort order:
* 1) ACF field_68b609060bdc9 ascending (0 first)
* 2) ACF text field field_69ab4dced74d6 phrase match
* 3) title phrase match
* 4) excerpt phrase match
* 5) content phrase match
* 6) newest date
* 7) ID DESC as final tie-breakerApril 7, 2026 at 6:56 pm #57219Ernest Marcinko
KeymasterHi David,
Sure! I have made the best possible setup for your requirements, just follow the steps below. If you need help with setting these up directly, then just add temporary access details and I will do it for you.
Search instance setup
First off, you need the set the ordering as follows (screenshot here):
– Pirmary: Custom Field Ascending -> Your Field Name -> Numeric
– Secondary: RelevanceThen I think the best approach will be to use the index table engine, because it extracts all the keywords from the selected fields, and that includes the removal of all special characters including all types of quotes and many many more.
Index Table Setup
To set up the index table engine, follow these steps:
– Open the Index Table submenu in the sidebar under Ajax Search Pro menu
– Select the desired post types on the General tab
– Select the Title, Excerpt and Content fields (seleced by default)
– Select the field_69ab4dced74d6 on the Index Custom Fields option
– Select anything else that you think is relevant for searches
– Scroll down and Save the settings
– After saving Hit the Create New Index button and keep the window open until it finishes (this only needs to be done once, new items are indexed automatically)Rest of Search instance setup
Now that you have a all the fields indexed lets go back to the search instance settings and enable the index table engine and select the same post types as on the index table settings.
After that set up the keyword matching as AND with exact keyword matches underSearch Behavior -> Keyword Logic & Matching– so all keywords must match in phrase.Then go to the Relevance settings panel and try this setup.
The numbers here may need tweaking to get it right, as the relevance calculation is complex. You can absolutely use values above 500 (even though not recommended) if you want a specific area to be highly prioritized.Quick Explanation
This setup will ensure that above all the primary ordering is used from field_68b609060bdc9 as numeric ascending, then it is passed to the relevance calculator which then uses the title -> except -> content match order. The date and ID order is applied automatically if matches are still having the same relevance, but that is very unlikely.I hope this helps!
All the best,
ErnestApril 7, 2026 at 7:41 pm #57220David Frank
ParticipantThis is amazing, thank you so much
April 7, 2026 at 7:43 pm #57221Ernest Marcinko
KeymasterYou are very welcome David 🙂
April 7, 2026 at 8:08 pm #57222David Frank
Participantone more question, does this reorder the search results page or just the ajax dropdown when you type in the text
April 7, 2026 at 8:27 pm #57223Ernest Marcinko
KeymasterIf the search override is active, then it will apply on the results page too by sending the updated results list to the query. If it is disabled, then only the ajax results in the drop-down are affected.
April 7, 2026 at 8:41 pm #57224David Frank
Participantperfect
-
AuthorPosts
- You must be logged in to reply to this topic.