max elements to show Autocomplete Widget

max elements to show Autocomplete Widget

I was using autocomplete widget and i run a query with 6000 items and it was ok.

But when I run a query with 6700 and more, the autocomplete doesn't work, someone can help me please!!!

var availableTagsItems = [ <6700 items are here>  ];

          $('#txtInput').autocomplete(
           {
               source: availableTagsItems
           });

          $('#txtInput').autocomplete("option", "minLength", 4);
          $('#txtInput').autocomplete("option", "position", { collision: "flipfit" });

Thanks!!!