Can I change the number of results shown in the Swiftype WordPress autocomplete?


Yes, you can change the number of autocomplete results using the resultLimit option of the swiftypeConfig JavaScript object. Add the following code to your theme’s functions.php file:

function swiftype_javascript_config() {
<script type="text/javascript">
var swiftypeConfig = {
  resultLimit: 5 // set to your desired number of results

add_action('wp_head', 'swiftype_javascript_config');

NOTE: This will not affect the number of results returned on the search results page.

For more details, see Customizing autocomplete in the WordPress customization tutorial.