Title: Relevanssi Live Ajax Search
Author: Christoph Vielgrader
Published: <strong>⛄1️⃣ 25, 2022</strong>
Last modified: ☘️5️⃣ 12, 2026

---

Search plugins

![](https://ps.w.org/relevanssi-live-ajax-search/assets/banner-772x250.jpg?rev=3529563)

![](https://ps.w.org/relevanssi-live-ajax-search/assets/icon-256x256.png?rev=3529563)

# Relevanssi Live Ajax Search

 By [Christoph Vielgrader](https://profiles.wordpress.org/comesio/)

[Download](https://downloads.wordpress.org/plugin/relevanssi-live-ajax-search.2.6.zip)

 * [Details](https://emoji.wordpress.org/plugins/relevanssi-live-ajax-search/#description)
 * [Reviews](https://emoji.wordpress.org/plugins/relevanssi-live-ajax-search/#reviews)
 *  [Installation](https://emoji.wordpress.org/plugins/relevanssi-live-ajax-search/#installation)
 * [Development](https://emoji.wordpress.org/plugins/relevanssi-live-ajax-search/#developers)

 [Support](https://wordpress.org/support/plugin/relevanssi-live-ajax-search/)

## Description

Relevanssi Live Ajax Search enables ajax live search for your search forms. It won’t
swamp you with settings, and generally, Relevanssi Live Ajax Search works without
any modifications necessary. If you want to customize it, you have complete control
over how it works and what it does.

Relevanssi Live Ajax Search displays the search results using templates. You can
easily override the default templates from your theme to make the results look the
way you want them to look.

#### Works best with Relevanssi

Relevanssi Live Ajax Search only provides you with live search results. To get really
good results, use [Relevanssi](https://wordpress.org/plugins/relevanssi/), [Relevanssi Premium](https://www.relevanssi.com/buy-premium/)
or [Relevanssi Light](https://wordpress.org/plugins/relevanssi-light/). Relevanssi
Live Ajax Search automatically uses Relevanssi to power the search results if Relevanssi
is installed and active. However, you don’t need Relevanssi; Relevanssi Live Ajax
Search also works with the default WP search.

#### Changes from SearchWP Live Ajax Search

Relevanssi Live Ajax Search is a fork of [SearchWP Live Ajax Search](https://wordpress.org/plugins/searchwp-live-ajax-search/).
I forked it from version 1.6.1 because it looked like SearchWP Live Ajax Search 
wasn’t getting updates anymore. I also wanted to improve the Relevanssi compatibility.

Relevanssi Live Ajax Search drops all SearchWP compatibility. You can use SearchWP
Live Ajax Search, which has built-in SearchWP support.

The widget has also been removed. It was unnecessary and outdated.

Relevanssi Live Ajax Search can now take over the Gutenberg `core/search` search
form.

#### This plugin is on GitHub

Feel free to open up issues at
 [https://github.com/msaari/relevanssi-live-ajax-search](https://github.com/msaari/relevanssi-live-ajax-search).

## Installation

 1. Install the plugin from the WordPress plugin screen.
 2. Activate the plugin.
 3. That’s it! Most of the time, that’s all you need.

If Relevanssi Live Ajax Search does not automatically attach itself to your search
form, you can enable it by adding a single HTML5 data attribute (`data-rlvlive="
true"`) to the input field of your search form. [You can find more information in the plugin documentation.](https://www.relevanssi.com/live-ajax-search/)

## FAQ

### How do I create a custom search results template

Relevanssi Live Ajax Search uses a template loader, making it easy to replace the
search results. There is a `templates` folder in the plugin folder, which includes`
search-results.php`. This file is the template used to output search results. To
customize the search results:

 1. Create a folder called `relevanssi-live-ajax-search` in your theme directory.
 2. Copy the `search-results.php` file into the new folder.
 3. Relevanssi Live Ajax Search will now use that file to show the results.

If you want to override the default CSS styles, you can remove them this way:

    ```
    add_filter( 'relevanssi_live_search_base_styles', '__return_false' );
    ```

This filter hook removes the base styles that control the live search result position.

    ```
    wp_dequeue_style( 'relevanssi-live-search' );
    ```

This removes the actual search result styles.

### I’m using Astra, Storefront, or Divi, and this plugin doesn’t work

It does, Astra search form is just designed in a way that hides the search results.
You can find solutions in the [plugin documentation](https://www.relevanssi.com/live-ajax-search/#astra).
The easiest solution is adding this to your theme `functions.php`:

    ```
    add_filter( 'relevanssi_live_search_add_result_div', '__return_false' );
    ```

### I want to change the number of results shown

There’s a filter for that! Add this to your theme functions.php or in a code snippet:

    ```
    add_filter( 'relevanssi_live_search_posts_per_page', function() { return 10; } );
    ```

This will show 10 results. You can adjust the number as you wish.

### I’m using WPML and get no results!

For some reason, the combination of Relevanssi Live Ajax Search, Relevanssi and 
WPML leads to problems. To solve this problem, use the `WP_Query` mode of fetching
the results. To activate the mode, add this to your theme functions.php:

    ```
    add_filter( 'relevanssi_live_search_mode', function() { return 'wp_query'; } );
    ```

This will make Relevanssi Live Ajax Search use a different method of fetching the
results. This method is compatible with WPML. This method uses the `search-results-
query.php` template instead of the default `search-results.php` template in Relevanssi
Live Ajax Search, so take note if you want to customize the template to use the 
right base template for your customization.

## Reviews

![](https://secure.gravatar.com/avatar/fd058cd08f5adb7742c6ebea2012880338bae6eb3355405dfc214061769966ea?
s=60&d=retro&r=g)

### 󠀁[Simplesmente perfeito!](https://wordpress.org/support/topic/simplesmente-perfeito-14/)󠁿

 [mrleema](https://profiles.wordpress.org/mrleema/) 🍂1️⃣0️⃣ 25, 2024

Simples de instalar e usar! Agora deu vida aos resultados de buscas do meu site.

![](https://secure.gravatar.com/avatar/f6762cdfffc01b7b93234d2ea9e5e2585898ad41d97a0f01a6930bf6ac7dd536?
s=60&d=retro&r=g)

### 󠀁[Absolutely incerdible!](https://wordpress.org/support/topic/absolutely-incerdible/)󠁿

 [philliproth](https://profiles.wordpress.org/philliproth/) 🌻8️⃣ 30, 2024

If you want to get your search on the next level, this is your go-to plugin!

![](https://secure.gravatar.com/avatar/9873ad0abc8ae734c74fa32b75cc860a7f03ec531ffc65be82d17de48ea42bf7?
s=60&d=retro&r=g)

### 󠀁[Great Job!](https://wordpress.org/support/topic/great-job-1275/)󠁿

 [kklaiber](https://profiles.wordpress.org/kklaiber/) ☘️4️⃣ 20, 2023

Great plugin!

![](https://secure.gravatar.com/avatar/2ee166573c829bb229013773aeb0c953eb74eaadd042aca7fc34a84a5ed204b0?
s=60&d=retro&r=g)

### 󠀁[Excellent, helpful developer with questions](https://wordpress.org/support/topic/excellent-helpful-developer-with-questions/)󠁿

 [WPabmm](https://profiles.wordpress.org/aboutm2/) ⛄2️⃣ 10, 2023

Excellent plugin, works very well, very easy/automatic integration. A couple of 
minor issues were resolved with solutions from the internet and a very quick response
from the developer Mikko on the support forum here! Thank you 🙂

![](https://secure.gravatar.com/avatar/4afc5815ea82f114abd515e80248546305cd2d37859d4ca92dfe932ceb83d395?
s=60&d=retro&r=g)

### 󠀁[Great plugin!](https://wordpress.org/support/topic/great-plugin-33710/)󠁿

 [stratboy](https://profiles.wordpress.org/stratboy/) ☘️3️⃣ 18, 2022

Also, really great and fast tech support if needed! Recommended.

![](https://secure.gravatar.com/avatar/8ea030b52ff82046c03c58b18dc95f411b1669c822bf9b37cd4c11d9f063be46?
s=60&d=retro&r=g)

### 󠀁[Seamless integration](https://wordpress.org/support/topic/seamless-integration-18/)󠁿

 [Tobias](https://profiles.wordpress.org/tobiaseichner/) ☘️3️⃣ 6, 2022

Easy installation without additional configuration effort.

 [ Read all 9 reviews ](https://wordpress.org/support/plugin/relevanssi-live-ajax-search/reviews/)

## Contributors & Developers

“Relevanssi Live Ajax Search” is open source software. The following people have
contributed to this plugin.

Contributors

 *   [ Christoph Vielgrader ](https://profiles.wordpress.org/comesio/)
 *   [ Mikko Saari ](https://profiles.wordpress.org/msaari/)

“Relevanssi Live Ajax Search” has been translated into 13 locales. Thank you to 
[the translators](https://translate.wordpress.org/projects/wp-plugins/relevanssi-live-ajax-search/contributors)
for their contributions.

[Translate “Relevanssi Live Ajax Search” into your language.](https://translate.wordpress.org/projects/wp-plugins/relevanssi-live-ajax-search)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/relevanssi-live-ajax-search/),
check out the [SVN repository](https://plugins.svn.wordpress.org/relevanssi-live-ajax-search/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/relevanssi-live-ajax-search/)
by [RSS](https://plugins.trac.wordpress.org/log/relevanssi-live-ajax-search/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 2.6

 * Security update: This plugin could be used for blind oracle attacks to find out
   information on private posts. This has been blocked.
 * New feature: Post type, post ID and term ID are now added to the results template
   as data attributes for better CSS targeting. Contributor: Marco Almeida.
 * New feature: New filter hook `relevanssi_live_search_result_arrow` filters the`&
   raquo;` arrow in the search results. Contributor: Marco Almeida.
 * New feature: Action hooks `relevanssi_live_search_before_result`, `relevanssi_live_search_before_result_link`,`
   relevanssi_live_search_before_result_title`, `relevanssi_live_search_after_result_title`,`
   relevanssi_live_search_after_result_link`, `relevanssi_live_search_after_result`
   allow you to inject content to the search results without modifying the template.
   Contributor: Marco Almeida.

## Meta

 *  Version **2.6**
 *  Last updated **6 months ago**
 *  Active installations **7,000+**
 *  WordPress version ** 4.9 or higher **
 *  Tested up to **7.0.8**
 *  PHP version ** 7.0 or higher **
 *  Languages
 * [Czech](https://cs.wordpress.org/plugins/relevanssi-live-ajax-search/), [Dutch](https://nl.wordpress.org/plugins/relevanssi-live-ajax-search/),
   [English (US)](https://wordpress.org/plugins/relevanssi-live-ajax-search/), [Finnish](https://fi.wordpress.org/plugins/relevanssi-live-ajax-search/),
   [French (France)](https://fr.wordpress.org/plugins/relevanssi-live-ajax-search/),
   [German](https://de.wordpress.org/plugins/relevanssi-live-ajax-search/), [Italian](https://it.wordpress.org/plugins/relevanssi-live-ajax-search/),
   [Polish](https://pl.wordpress.org/plugins/relevanssi-live-ajax-search/), [Portuguese (Brazil)](https://br.wordpress.org/plugins/relevanssi-live-ajax-search/),
   [Portuguese (Portugal)](https://pt.wordpress.org/plugins/relevanssi-live-ajax-search/),
   [Russian](https://ru.wordpress.org/plugins/relevanssi-live-ajax-search/), [Spanish (Chile)](https://cl.wordpress.org/plugins/relevanssi-live-ajax-search/),
   [Spanish (Spain)](https://es.wordpress.org/plugins/relevanssi-live-ajax-search/),
   and [Swedish](https://sv.wordpress.org/plugins/relevanssi-live-ajax-search/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/relevanssi-live-ajax-search)
 * Tags
 * [ajax](https://emoji.wordpress.org/plugins/tags/ajax/)[live](https://emoji.wordpress.org/plugins/tags/live/)
   [search](https://emoji.wordpress.org/plugins/tags/search/)
 *  [Advanced View](https://emoji.wordpress.org/plugins/relevanssi-live-ajax-search/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  9 5-star reviews     ](https://wordpress.org/support/plugin/relevanssi-live-ajax-search/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/relevanssi-live-ajax-search/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/relevanssi-live-ajax-search/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/relevanssi-live-ajax-search/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/relevanssi-live-ajax-search/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/relevanssi-live-ajax-search/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/relevanssi-live-ajax-search/reviews/)

## Contributors

 *   [ Christoph Vielgrader ](https://profiles.wordpress.org/comesio/)
 *   [ Mikko Saari ](https://profiles.wordpress.org/msaari/)

## Support

Issues resolved in last two months:

     0 out of 1

 [View support forum](https://wordpress.org/support/plugin/relevanssi-live-ajax-search/)