Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Replace default wordpress search
This topic contains 10 replies, has 2 voices, and was last updated by Ernest Marcinko 1 year, 6 months ago.
- AuthorPosts
- September 1, 2021 at 9:31 am #34465
Hi there,
I want to know how can we replace the default wordpress search with the Ajax Pro Search here:
https://redpilluniversity.org/?s=productions
Also, we want to set the seach with OR conditions so, we can search with 2 or more words with OR condtions.
Please let me know how can we do that.
Kind Regards
Alan-
This topic was modified 1 year, 6 months ago by
uniedcom75.
September 1, 2021 at 2:50 pm #34473Hi Alan,
For automatic replacement, you can use this option. If the theme uses the get_search_form hook to print the search bar (most quality themes do), then it should work just fine.
You can set the keyword logic here to OR.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
September 1, 2021 at 3:33 pm #34477Hi Ernest,
As per your feedback, i make a new search instance and set this as default search.
Also i set the OR login as per your feedback.
But these 2 searches are giving diffrent results:
https://redpilluniversity.org/?s=productions
and
https://redpilluniversity.org/?s=GE Griffin’s lectures
and when i search them combine
https://redpilluniversity.org/?s=GE Griffin’s lectures & productions
It should show both the results when i search combine.
Would you please check is the default search is replaced by Ajax search and how can we get combine results as above example.
Regards,
AlanSeptember 2, 2021 at 8:20 am #34482Hi Ernest,
Just checking did you get time to check this?
September 2, 2021 at 9:08 am #34492Hi!
The problem there is how you try to open that URL.
https://redpilluniversity.org/?s=GE Griffin’s lectures & productions
The “&” symbol is used by the server as a query parameter separator. It is not a plugin thing, it is how the request URIs work on the web. This query actually means for the server, to set the “s” argument to “GE Griffin’s lectures ” and the “productions” argument to an empty string.
The correct URL for that query is:https://redpilluniversity.org/?s=GE+Griffin%E2%80%99s+lectures+%26+productions
When you make a search via any search form or make any type of request, the URL will be encoded this way, so the “&” symbol does not act as a query argument separator.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
September 8, 2021 at 7:43 am #34589Hello Ernest,
The search code for OR apparently is the plus sign (mary+john) and it works as expected. I also see that the standard NOT operator also works as expected, but what is the code for (mary AND john)? I tried the standard “AND” Boolean operator but apparently it does not work in Ajax. What should I use?
Regards,
AlanSeptember 8, 2021 at 10:09 am #34598Hi,
The keyword logic of the search is statically set on the plugin back-end. There are no operators which are accepted – everything you type into the search is treated as part of the phrase. (the reason behind this are performance related)
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
September 14, 2021 at 3:02 pm #34740Hello Emest,
Thanks for your support so far.
I have one more query, for post rating I am using this plugin:
https://wordpress.org/plugins/rate-my-post/
Would it possible to dispaly the search result order by post rating which is showing using this plugin?
Regards,
Alan
September 15, 2021 at 9:49 am #34763I think so, try using this configuration for that: https://i.imgur.com/9Hy99m2.png
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
September 18, 2021 at 1:35 pm #34813Hello Ernest,
While checking the ordering, we come to know that the changing ordering parameter is not reflecting the search results order.
It looks like the default search replacement is not working for the divi theme search results page.
We are using a custom template for the search results page.
Would you please check why it’s not working.
Regards,
Alan
September 19, 2021 at 8:42 am #34815Hi Alan,
Your Divi search results page configuration was incorrect. Even if the plugin was disabled, the results page was showing always the same posts. I enabled this feature on the Divi editor: https://i.imgur.com/GAYKiq2.png
Best,
I think that is the option for the widget to act as the archive page, but you may need to check the Divi documentation to make sure, I am not that familiar with it. It looks okay now though.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
-
This topic was modified 1 year, 6 months ago by
- AuthorPosts
You must be logged in to reply to this topic.