WordPress Search

  • Showcase group
  • Consultants group
  • Blog
  • Help
    • My Licenses
      • Login
      • Download
      • Why us
    • Features
      • Google Retail Search
      • Weaviate
      • Elasticsearch
      • OpenSearch
      • Solr
      • Algolia
      • Roadmap
      • Artificial Intelligence
      • Hosting
      • Releases
    • Live demos
    • Documentation
    • Support
    • Testimonials
Menu
  • Showcase group
  • Consultants group
  • Blog
  • Help
    • My Licenses
      • Login
      • Download
      • Why us
    • Features
      • Google Retail Search
      • Weaviate
      • Elasticsearch
      • OpenSearch
      • Solr
      • Algolia
      • Roadmap
      • Artificial Intelligence
      • Hosting
      • Releases
    • Live demos
    • Documentation
    • Support
    • Testimonials
FREE TRIAL & FREE SETUP >>
Search

Home » How does the ajax search work ?

How does the ajax search work ?

735 views 1 September 26, 2016 Updated on July 13, 2019 admin

When you choose to display your search results with the ajax search theme delivered with the plugin, several things happen.

Search page

Wpsolr creates a search page “search-wpsolr”, which only content is a WordPress shortcode. See Is there a shortcode to display the ajax search where I need ?

Search form(s)

The standard WordPress filter ‘get_search_form’ is intercepted to replace your theme’s default search boxes with wpsolr’s search box.

<a href="https://developer.wordpress.org/reference/functions/add_filter/" target="_blank" rel="noopener noreferrer">add_filter</a>(<a href="https://developer.wordpress.org/reference/functions/get_search_form/" target="_blank" rel="noopener noreferrer">'get_search_form'</a>, 'solr_search_form' );

The wpsolr’s search box form’s target url is then set to to the new page “search-wpsolr”.

Tags:ajaxget_search_formsearch-wpsolrshortcode

Was this helpful?

1 Yes  4 No
Related Articles
  • Why is my ajax search box not redirecting to the ajax search page ?

Didn't find your answer? Contact Us

  Why is my ajax search box not redirecting to the ajax search page ?

WPSOLR is built by eostis.com
Login
Support
Privacy policy
  • Terms and Conditions
  • © 2023 wpsolr.com. All Rights Reserved.
Youtube
Roadmap