docs-site/content/guide/wordpress-search.md
If you are looking to implement a search-as-you-type instant search experience on a WordPress site, you can use the Typesense WordPress plugin Search With Typesense built by the CodeManas team. The plugin allows you to index your posts, pages and provides ways to showcase them via InstantSearch and Autocomplete.
This article will walk you through the installation and configuration of the plugin.
:::tip Third-Party Integration The WordPress plugin described in this article is built and maintained by a member of the extended Typesense community - Codemanas
Please reach out to them directly for additional support. :::
You need the following minimum requirements to install this plugin:
There are two methods for installing the Typesense plugin for WordPress:
This is the preferred and most simple method to install the plugin.
Once the plugin has been installed and activated - we need to do someone initial setup.
If you are hosting Typesense locally or on your own server, generate your API Keys following the instructions here: <RouterLink :to="`/${$site.themeConfig.typesenseLatestVersion}/api/api-keys.html`">Generate API Keys</RouterLink>.
If you are using Typesense Cloud, once the cluster is set up, click on "Generate API Keys" from your cluster's dashboard. This will generate and download API Keys to be used. Keep this file safe and secure for future use.
The text file will have the following information:
After retrieving the required info go to WordPress > Admin Area > Typesense > Settings.
Here you will need to fill in the details retrieved from the credentials file:
Your WordPress install will now be able to connect to your Typesense instance.
The next step is to enable and start indexing your posts/pages.
Go to WordPress Admin Area > Typesense > Search Configuration and from here you can:
This option allows you to select which post types to index. By default, the plugin allows you to index posts and pages. There are WordPress action hooks and filters that allow adding custom post types.
The bulk index option allows you to index all posts (post types) at once. You'll find options to
Enabling this option will replace all WordPress default search widgets and forms with an autocomplete search form, powered by Typesense.
You can see an example of this here.
This allows you to change the placeholder text for the autocomplete search (if replace WordPress search is enabled).
Allows you to define delay time after input from user before retrieving results. Minimum delay time is 300 milliseconds.
And that's it - you are ready to go.
There are many additional options to use the plugin with shortcodes and advanced customization options. Read more about them in the full documentation on https://codemanas.github.io/cm-typesense-docs/.