Skip to content

Instantly share code, notes, and snippets.

@JasonStoltz
Created June 27, 2019 20:36
Show Gist options
  • Save JasonStoltz/1b470d1deffbe5c35aed241c068b7456 to your computer and use it in GitHub Desktop.
Save JasonStoltz/1b470d1deffbe5c35aed241c068b7456 to your computer and use it in GitHub Desktop.
Medium - Search UI - 10
const configurationOptions = {
// ...
autocompleteQuery: {
suggestions: {
types: {
documents: {
// Which fields to search for suggestions.
fields: ["name"]
},
// How many suggestions appear.
size: 5
}
}
}
// ...
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment