Skip to main content

Typeaheadquery

Properties

NameTypeDescriptionNotes
querystringThe type ahead query string used to construct a phrase prefix match query.[default to undefined]
fieldstringThe field on which to perform the type ahead search.[default to undefined]
nestedType(optional) stringThe nested type.[default to undefined]
maxExpansions(optional) numberThe number of suffixes the last term will be expanded into. Influences the performance of the query and the number results returned. Valid values: 1 to 1000.[default to 10]
size(optional) numberThe max amount of records the search will return.[default to 100]
sort(optional) stringThe sort order of the returned records.[default to 'desc']
sortByValue(optional) booleanThe flag that defines the sort type, by count or value.[default to false]