Do you want to improve your WordPress search with SearchWP?
By improving the built-in WordPress search, you can help users find what they are looking for. This will keep them on your website for longer, improve the visitor experience, and get you more conversions.
In this article, we will show you how to improve your WordPress search with SearchWP easily.
Why Improve WordPress Search With SearchWP?
WordPress has a built-in search feature, but it doesn’t always show the most accurate results. You also can’t customize this feature so that it prioritizes your site’s most important content.
This means that visitors may struggle to find what they’re looking for using your site’s built-in WordPress search.
That’s why we recommend using SearchWP.
SearchWP is the best custom search plugin for WordPress, used by over 30,000 websites. With SearchWP, you can make sure you are showing accurate results by creating a custom relevance scale and adjusting the search algorithm.
You also get access to detailed search metrics so you can see what visitors are searching for and the types of content they’re finding. This allows you to continuously improve your site’s search to deliver the most accurate results.
You can even use this data to generate new blog post ideas by seeing the kind of content visitors are looking for.
With that said, let’s show you how to set up SearchWP to improve your WordPress search.
How to Install and Set Up SearchWP
Upon activation, go to SearchWP » Settings and then click on the ‘General’ tab.
Here, you need to enter your license in the ‘License Key’ box.
You can find this information in your account on the SearchWP site. Once you are done, make sure to click the ‘Verify Key’ button.
Create a Custom Search Algorithm
After activating the plugin, you can fine-tune how SearchWP indexes, searches, and displays your content. You can think of this as creating a custom Google search algorithm that’s just for your WordPress blog or website.
To get started, head over to SearchWP » Algorithm.
Here, you’ll see a section for the different content types that SearchWP searches by default, such as pages, posts, and media files.
Every section has an ‘Attribute Relevance’ slider that changes how your site’s search engine values and ranks that content.
Content that matches an attribute with high relevancy will appear higher in the search results. By contrast, content that matches an attribute that has less relevancy will appear lower in the user’s search results.
By default, all the attribute sliders are set to ‘low,’ but you can change that by dragging the slider to the right.
Every site is unique, so you may want to try different relevancy settings to see what gives you the most accurate and helpful search results.
When you are happy with how the search algorithm is set up, scroll to the top of the screen and click the ‘Save’ button.
SearchWP will now rebuild the index automatically.
Depending on the speed of your Internet connection and your WordPress hosting provider, this may take a few minutes.
As soon as you see ‘Index Status 100%,’ you’ll know that SearchWP has indexed your content.
How to Add a Search Bar to Your WordPress Website
If your WordPress theme already has a search box, then it’ll start using your new SearchWP algorithm automatically. If your theme doesn’t have a search box, then it’s easy to add one.
Simply head over to Appearance » Widgets and find the section where you want to add a search bar, such as the sidebar or similar section.
Inside this section, click the ‘+’ icon to open the widget block menu.
In the popup that appears, type in ‘Search.’
When you see it, click the Search block to add it to your site.
You can now type in an optional title and placeholder, which SearchWP will show to visitors before they type in a search term.
In this way, you can encourage visitors to use your site’s search feature. For example, if you run a WooCommerce store, then you might use a placeholder such as ‘Shop for great deals’ or ‘Search all our products.’
When you are happy with how the search field looks, click on ‘Update’ to save your changes. For more detailed instructions, please see our guide on how to add and use widgets.
Now, if you visit your WordPress blog, you’ll see the improved search field in action.
Adding a Search Bar Using the Full Site Editor
You can even add a search bar to areas you can’t edit using the standard WordPress content editor. For example, you can add a search field to your 404 page template.
To get started, head over to Appearance » Editor in the WordPress dashboard.
By default, the full site editor shows your theme’s home template, but you can add a search block to any template.
To see all the available options, select ‘Templates’ in the left-hand menu.
You can now click on the template where you want to add the search bar.
WordPress will now show a preview of the design and any page settings that you can edit. To go ahead and edit this template, click on the small pencil icon.
With that done, click on the blue ‘+’ icon.
In the panel that appears, type in ‘Search.’
When the Search block shows up, drag it to the area where you want to show the field.
To customize the block title or placeholder text, simply type the new messaging into the Search block.
When you are happy with how the block looks, click on ‘Save’ to make the search bar live.
More Ways to Improve WordPress Search With SearchWP
This is a great start, but there are lots of other ways to improve the default WordPress search with SearchWP. Let’s look at a few of them below.
How to Make PDF Files Searchable in WordPress
PDFs are a great way to share information with your visitors. For example, many restaurant websites publish their menus as PDF files. You can even add a PDF viewer in WordPress, so customers and visitors can see the PDF’s contents without downloading it.
By default, the built-in WordPress search shows the title and description of your PDFs in its search results, but it doesn’t show the document’s contents.
To make your PDFs searchable, go to SearchWP » Algorithms. In the ‘Media’ section, click on the ‘Add/Remove Attributes’ button.
In the popup that appears, check the ‘Document Content’ box if it isn’t already selected.
This setting tells SeachWP to index the contents of your PDFs, Microsoft Office files, text files, and other documents in the WordPress media library.
You should also check the ‘PDF Metadata’ box. SearchWP will then index PDF metadata that isn’t part of the file’s contents, such as its title, author, subject, and keywords.
When you are happy with the changes you’ve made, click on the ‘Done’ button. ‘Document Content’ and ‘PDF metadata’ will now appear in the ‘Media’ section.
You’ll notice that each item has an ‘Applicable Attribute Relevance’ scale.
By default, the sliders for Document Contents and PDF Metadata are all the way to the left, so they don’t carry much weight. If you want the document content and PDF metadata to have a bigger impact on the search results, then simply move the sliders.
With that done, don’t forget to click on ‘Save’ to rebuild the index and include relevant PDFs in the search results.
For more detailed instructions, please see our guide on how to add PDF indexing and searching in WordPress.
Add a Search By Category Feature to WordPress
If you have multiple categories on your WordPress website, then you might want to let users restrict their search to a specific category. For example, if you have an online store, then customers may want to search within a particular product category.
You can do this by adding a category dropdown to your search forms.
For more details, see our guide on how to search by category in WordPress.
Add a Live Ajax Search Function to WordPress
Another feature you’ve probably seen is live Ajax search, also called instant search. This adds a dropdown autocomplete feature, just like you see in search engines like Google.
Instant search helps your visitors find what they are looking for more quickly, and SearchWP makes it easy to add this feature to your website.
For more details, see our guide on how to add live Ajax search to your WordPress site.
Add a Smart Product Search to Your Online Store
If you run an online marketplace, then you’ll want to help visitors find the products they are looking for, fast.
SearchWP makes it easy to improve your product search and get more sales.
You can even customize the WooCommerce search engine and give extra weight to the product attributes that matter most.
For more details, see our guide on how to make a smart WooCommerce product search.
Create a Custom Post Type Search Form in WordPress
With SearchWP, you can create all kinds of search forms, including an advanced search form for custom post types.
To do this, you’ll create a separate search form that looks at your custom posts only by going to SearchWP » Search Forms. Here, click the ‘Add New’ button.
You can now give the form a descriptive title.
This is just for your reference, so you can use anything that helps you identify the form in your WordPress dashboard. This is particularly important if you plan to create multiple search forms in WordPress.
By default, the form will search media, pages, and posts and ignore custom post types.
To include custom post types, you need to find the ‘Type of search’ field and give it a click.
You can now type in the name of each custom post type.
When the right post type appears, give it a click to add it to the search.
Do you want to search custom post types only and ignore all other content?
Then just click the small ‘X’ next to ‘Media’, ‘Pages’, and ‘Posts’.
With that done, the form will search your custom post types only.
You can now style the form by changing the font size, colors, button style, and more. For more details, see our guide on how to create advanced search forms for custom post types.
When you are happy with how the form is set up, scroll to the top of the screen and click on ‘Save’ to store your settings.
Now, you can add the search form to any page, post, or widget-ready area using the Search Form block.
Simply head to the area where you want to show the form. Then, click on the ‘+’ button and type in ‘Search Form.’
When the right block appears, give it a click.
Next, open the ‘Select a Form’ dropdown and choose the search form you want to display.
When you are ready to make the search form live, simply click on either ‘Update’ or ‘Publish’. Now, you can visit your website to see the search form in action.
We hope this article helped you learn how to improve WordPress search with SearchWP. You may also want to see our picks of the best live chat software for small businesses and our guide on how to get a free business email address.