Replace default wordpress search

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 Ernest Marcinko 1 year, 6 months ago.

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #34465
    uniedcom75
    uniedcom75
    Participant

    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 uniedcom75.
    #34473
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi 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 :)


    #34477
    uniedcom75
    uniedcom75
    Participant

    Hi 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,
    Alan

    #34482
    uniedcom75
    uniedcom75
    Participant

    Hi Ernest,

    Just checking did you get time to check this?

    #34492
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    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 :)


    #34589
    uniedcom75
    uniedcom75
    Participant

    Hello 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,
    Alan

    #34598
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    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 :)


    #34740
    uniedcom75
    uniedcom75
    Participant

    Hello 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

    #34763
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    I 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 :)


    #34813
    uniedcom75
    uniedcom75
    Participant

    Hello 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

    #34815
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi 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
    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.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.