# Swiftype Jquery Autocomplete

**URL:** <https://discuss.elastic.co/t/swiftype-jquery-autocomplete/256376>\
**Category:** Elastic Search\
**Tags:** elastic-site-search\
**Created:** [November 23, 2020, 3:36pm UTC](https://discuss.elastic.co/t/swiftype-jquery-autocomplete/256376 "2020-11-23T15:36:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![KennytheCoder](https://avatars.discourse-cdn.com/v4/letter/k/6a8cbe/32.png) [@KennytheCoder](https://discuss.elastic.co/u/KennytheCoder)\
**Post date:** [November 23, 2020, 3:36pm UTC](https://discuss.elastic.co/t/swiftype-jquery-autocomplete/256376/1 "2020-11-23T15:36:21Z")

</div>

I'm using the jquery autocomplete component with Site Search. I'm looking for a way to only initiate the autocomplete after the user has entered X number (in this case 3) characters.

Any ideas if there is a property or setting for this?

Thanks.  
K

---

<div class="post-metadata">

**Author:** ![qhoxie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/qhoxie/32/47252_2.png) [@qhoxie](https://discuss.elastic.co/u/qhoxie)\
**Post date:** [November 25, 2020, 3:26pm UTC](https://discuss.elastic.co/t/swiftype-jquery-autocomplete/256376/2 "2020-11-25T15:26:00Z")

</div>

Hello,

There isn't a built-in way to do it, but you could modify the code minimally. This function would be a good place to start: [https://github.com/swiftype/swiftype-autocomplete-jquery/blob/master/jquery.swiftype.autocomplete.js#L359](https://github.com/swiftype/swiftype-autocomplete-jquery/blob/master/jquery.swiftype.autocomplete.js#L359)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 23, 2020, 3:26pm UTC](https://discuss.elastic.co/t/swiftype-jquery-autocomplete/256376/3 "2020-12-23T15:26:04Z")

</div>

Closed on December 23, 2020, 3:26pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
