Title: multiQuerySource
Last modified: May 4, 2022

---

# multiQuerySource

 *  Resolved [roberteasyweb](https://wordpress.org/support/users/roberteasyweb/)
 * (@roberteasyweb)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/multiquerysource/)
 * Hi! I am experiencing a lot of queries using your autocomplete search.
 * I found in your code, that you have made functions for autocomplete to use multiple
   queries, but in frontend it seems to fire a query for each indice, and not a 
   combined search request.
 * Is this something you know about? if so, is it an easy fix for me to implement
   inside the autocomplete.php template?
 * Can I also delay autocomplete to render after search value length is above 3 
   characters?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [4 years, 1 month ago](https://wordpress.org/support/topic/multiquerysource/#post-15615540)
 * Admittedly, I believe this is in regards to how the plugin has been configured
   by default depending on how many indexes someone is setting up to be a possible
   autocomplete suggestion source.
 * I’m looking into changes around some client implementation of the plugin myself,
   so I happen to have these links handy from some Algolia support discussion.
 * > Please note that you could get your results from both indices in one query 
   > with our multipleQueries feature:
   >  [https://www.algolia.com/doc/api-reference/api-methods/multiple-queries/](https://www.algolia.com/doc/api-reference/api-methods/multiple-queries/)
   > To implement multiple queries on InstantSearch you can refer to the following
   > documentation: [https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/multi-index-search/js/](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/multi-index-search/js/)
 * Since you mention Autocomplete, I think this may be the page you want instead:
   [https://www.algolia.com/doc/ui-libraries/autocomplete/guides/including-multiple-result-types/](https://www.algolia.com/doc/ui-libraries/autocomplete/guides/including-multiple-result-types/)
 * As is, we don’t have any of this in the shipped version of the plugin, so it 
   would be customizations needing made.
 *  Thread Starter [roberteasyweb](https://wordpress.org/support/users/roberteasyweb/)
 * (@roberteasyweb)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/multiquerysource/#post-15617218)
 * Ok! Thank you for your quick response, Michael.
 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [4 years, 1 month ago](https://wordpress.org/support/topic/multiquerysource/#post-15618826)
 * Welcome.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘multiQuerySource’ is closed to new replies.

 * ![](https://ps.w.org/wp-search-with-algolia/assets/icon-256x256.png?rev=2894668)
 * [WP Search with Algolia](https://wordpress.org/plugins/wp-search-with-algolia/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-search-with-algolia/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-search-with-algolia/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-search-with-algolia/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-search-with-algolia/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-search-with-algolia/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/multiquerysource/#post-15618826)
 * Status: resolved