Wordpress plugins
Swiftype Search

Swiftype Search

Version : 1.1.48
Tested up to : 4.2.16
Number of download : 93845
Average rating : 3.5 / 5 on 20 votes 20 votes, 3.5 avg.rating

Screenshots

Swiftype Search
Swiftype Search
Swiftype Search
Swiftype Search

The Swiftype Search plugin replaces the standard WordPress search with a better, more relevant search engine. It also gives you detailed insight into what your users are searching for, so you know which keywords to target when customizing your search engine results. The Swiftype search plugin is WordPress VIP-approved and already used on huge sites. The search plugin is complemented by our dashboard, full-featured developer API, and powerful analytics. Manage search results with drag and drop and see the changes reflected instantly. The base ranking algorithm is based on industry best-practices for search and provides more relevant results by default, but we also allow for any result set to be fully customized via our drag-and-drop interface for result reordering. To make customizations you simply create a Swiftype account and install the Swiftype Search plugin. You can then login to our dashboard to customize results and read through detailed search analytics. See the short demo video below for more details. Do you have a mobile app displaying content from your WordPress site? Swiftype’s mobile SDKs make it simple to add powerful search to your mobile apps. Combine our WordPress plugin with our mobile SDKs to create the same search experience on your site and in your app. Features Search runs on our powerful servers – it doesn’t bog down your site, even if you have hundreds of thousands of posts. Works with your theme’s search.php template – drop in the Swiftype search plugin and it just works. Fast typeahead autocomplete search suggestions based on titles, tags, and author names. Search results automatically update when you save, delete, or change search content. Re-order search results with drag-and-drop from your Swiftype Dashboard. Impactful search analytics help you understand your users. Advanced Customization Modify what types of posts and categories are searched or weight fields like title more heavily by adding a filter. Change the autocomplete behavior with JavaScript. Read our WordPress search customization tutorial for details. WP-CLI Support Swiftype Search supports WP-CLI. To see the available commands type wp swiftype in your WordPress install directory. The CLI is particularly useful if you have a large number of posts (more than 10,000) because it can synchronize posts with Swiftype more quickly by controlling the indexing batch size. Also, the CLI provides an option to destructively reindex the contents of your WordPress site which will be faster if you have a large number of deleted posts or simply want to start fresh. To index your WordPress site with the CLI, make sure you have WP-CLI installed and configure the plugin with your API key and search engine. Then run: wp swiftype sync To index more content at once, increase the batch size: wp swiftype sync --index-batch-size=100 In general, using a larger batch size will be faster. However, the size of the batch you can use is determined by how large your posts are on average. Modifying search parameters The Swiftype Search plugin provides a filter called swiftype_search_params that allows you to modify the search parameters before they are sent to Swiftype. For example, to add a filter so only pages are returned by the search results, you can add the following to your functions.php file: function swiftype_search_params_filter( $params ) { $params['filters[posts][object_type]'] = array( 'page' ); return $params; } add_filter( 'swiftype_search_params', 'swiftype_search_params_filter', 8, 1 ); For more details, check out our WordPress customization tutorial and the Swiftype Search API documentation. Modifying the query string The Swiftype Search plugin provides a filter called swiftype_search_query_string that makes it easier to modify the query string before it is sent to Swiftype. For example, to add a term to every query string, you can add the following to your functions.php file: function swiftype_search_query_filter( $query ) { return $query . ' ThisWillAlwaysBeInEveryQuery'; } add_filter( 'swiftype_search_query_string', 'swiftype_search_query_filter', 8, 1 ); You can use this filter to pre-process queries before they are executed. Adding Faceted Search Results The Swiftype Search plugin provides the swiftype_render_facets theme function to allow you to easily add faceting to your search results page. To use it, follow these steps: Add a swiftype_search_params_filter function to your theme’s functions.php file that adds facet parameters to the search. The version below will facet on tags and category: function swiftype_search_params_filter( $params ) { $params['facets[posts]'] = array( 'tags', 'category' ); return $params; } add_filter( 'swiftype_search_params', 'swiftype_search_params_filter', 8, 1 ); Add a swiftype_render_facets() call to your search.php template. This is what actually renders the facets. You should place it where you want the facets to be rendered: <?php swiftype_render_facets(); ?> (Optional) Style the facets using CSS. You can target div.st-facets for your CSS rules to only affect the content inside the facets container.

Download now