You can use the maxTokenGroups property to control how many token groups get displayed in the search bar.

In this example we are limiting the user to 3 fruits.