# New on WPPC: Instant search with autocomplete

*Published:* 2022-11-09
*Author:* Abhijit Prabhudan

> Using Elasticsearch, WPPC can now instantly surface results from within 59k+ plugins in the WordPress plugin repository.

![JPId0a63I8b_pQsIq-Q6ok0YHGimnLdyE7hosuB5oRqtFBEb8rYBtdc_zLrQzuNzBZCYav2hETzu5af21JhHxZ7SX8e1YfOcxDDvKIXppnZwGyOtPLntjRTVQFiI8Hr5UtxaF_bivawen8aWfFuOfbSWUzgsNuCe0PUuy-IurXFV-EsQupc45Nz0s9qY85DhR-k](https://lh5.googleusercontent.com/JPId0a63I8b_pQsIq-Q6ok0YHGimnLdyE7hosuB5oRqtFBEb8rYBtdc_zLrQzuNzBZCYav2hETzu5af21JhHxZ7SX8e1YfOcxDDvKIXppnZwGyOtPLntjRTVQFiI8Hr5UtxaF_bivawen8aWfFuOfbSWUzgsNuCe0PUuy-IurXFV-EsQupc45Nz0s9qY85DhR-k)Identifying a plugin that fits your exact needs vs the tens or even hundreds of alternatives in the WordPress plugin repository can be a meticulous process. Aiming to ease that process is central to our[ WP Plugin Compare](https://wpplugincompare.com/) (WPPC) project.

[Our initial release](https://rtcamp.com/blog/introducing-wordpress-plugin-compare/) included a handy comparison table that served as a starting point for comparative analysis. We also added supporting filters [in a subsequent release](https://rtcamp.com/blog/wordpress-plugin-compare-introducing-filter-page/) to surface plugins that meet criteria relevant to your goals.

In our latest release, we’ve addressed another essential research tool: search!

While [pre-made comparisons](https://wpplugincompare.com/#exploreComparisonsSection) are a great way to *share* a list of researched plugins, a robust search is the starting point for finding a great solution among many good ones. We identified two attributes we wanted to achieve in this iteration of WPPC search — speed and a seamless lead on to the compare page.

![GIF shows search on WPPC](https://rtcamp.com/wp-content/uploads/sites/2/2022/10/wppc-blog.gif?w=720&resize=720%2C362&quality=100&strip=all)## WPPC 🤝 Elasticsearch

Elasticsearch is the go-to solution for all kinds of text-search needs in applications as wide as e-commerce catalogs, log monitoring, big data analytics, fraud detection, and recommendation engines. The technology is tested at the highest level with [Enterprise Search](https://docs.wpvip.com/technical-references/enterprise-search/), as well as on millions of sites through WordPress plugins such as [Jetpack Search](https://wordpress.org/plugins/jetpack-search/), [ElasticPress](https://wordpress.org/plugins/elasticpress/), and [WP Solr](https://wordpress.org/support/plugin/wpsolr-search-engine/).

Elasticsearch is based on the Lucene search engine and can be understood as a document-oriented NoSQL data store that can manage large-scale indexing processes at a custom speed. Elasticsearch is fast because of two main features – it’s “inverted indexing” and parallelized queries.

### Setting up Elasticsearch

We zeroed in on 3 data fields from our WP.org plugin data source to be indexed – ‘**slug**’, ‘**title**’, and ‘**short\_description’**. We figured that even if the name and associated branding of a WordPress plugin changes, the keywords describing their functionality should remain similar. This enables users to discover relevant plugins, even after rebranding or ownership changes.

To fetch the appropriate matches after indexing, we used [a bool query](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-bool-query.html). The match conditions are processed across all three indexed fields under a ‘**must\_match**’ parameter. We also included a **‘must\_not’** field where a simple full-text match query passes to exclude matches with the plugins not needed in the search results. For example, it excludes the plugins that are already available in the comparison table. We also leveraged Elasticsearch’s[ search\_as\_you\_type](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-as-you-type.html) field type for autocomplete.

Elasticsearch [uses weighted scores](https://www.elastic.co/blog/how-to-improve-elasticsearch-search-relevance-with-boolean-queries) for filtering and ranking keyword matches, enabling relevant keywords to appear higher during a search. We calibrated using the following criteria: **slug matching** > **short\_description matching** > **title matching**. For the drop-down results, we filtered by plugin name, number of installations, and rating data.

## On the roadmap

The search feature was a long time coming. With our Elasticsearch implementation, finding and comparing 59k+ plugins became just a little bit easier!

Our next run of updates will focus on relevancy tuning by reassessing the weights and boosts, and implementing a search integration in the filter page for a more intuitive user experience.

Also, currently, the script used for uploading data to the backend of the WP Plugin Compare site also sends requests to Elasticsearch to insert/update data twice a day. Eventually, we will set up a pipeline that automatically updates data from the WordPress backend to our Elasticsearch instance in real time.

Have an interesting feature we can help roll out to your web property? [We’d love to chat](https://rtcamp.com/business-inquiry/)!

**Links:**[ WP Plugin Compare](https://wpplugincompare.com/) |[ Contact Us](https://rtcamp.com/business-inquiry/) |[ We’re Hiring](https://careers.rtcamp.com/)!

### Categories and Taxonomies

#### Categories
[Releases](https://rtcamp.com/blog/category/release.md)

#### Tags
[WPPC](https://rtcamp.com/blog/tag/wppc.md), [News & Events](https://rtcamp.com/blog/tag/news-events.md)

#### Service
[WPPC](https://rtcamp.com/blog/service/wppc.md)

### Related Posts

- [When you're the only one who understands WordPress: Take from WordCamp US 2026](https://rtcamp.com/blog/only-one-who-understands-wordpress-wcus-2026.md)
- [Agents need good tools too: Insights from WordCamp US 2026](https://rtcamp.com/blog/editorial-experience-for-humans-ai-wcus-2026.md)
- [Why the WordPress agency is becoming invisible | Perspective from WCUS 2026](https://rtcamp.com/blog/wordpress-agency-becoming-invisible-wcus-2026.md)
- [WordPress 7.1 “Mary Lou” : 63 rtCampers contribute to 36th consecutive release](https://rtcamp.com/blog/wordpress-7-1.md)
- [Publishio : Publish on your WordPress website from Claude & ChatGPT](https://rtcamp.com/blog/introducing-publishio.md)

### Navigation

- Previous Post: [WordPress 6.1 “Misha”: Our Contributions to 26th Consecutive Release](https://rtcamp.com/blog/wordpress-6-1.md)
- Next Post: [Restructuring our campus recruitment program](https://rtcamp.com/blog/restructuring-our-campus-hiring.md)
