Skip to main content

TypeAheadQuery

Query parameters used to construct an Elasticsearch type ahead query object. The typeAheadQuery performs a search for top values beginning with the typed values. For example, typing "Jo" results in top hits matching "Jo." Typing "Job" results in top hits matching "Job."

Properties​

NameTypeDescriptionNotes
querystrThe type ahead query string used to construct a phrase prefix match query.[required]
var_fieldstrThe field on which to perform the type ahead search.[required]
nested_typestrThe nested type.[optional]
max_expansionsintThe 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.[optional] [default to 10]
sizeintThe max amount of records the search will return.[optional] [default to 100]
sortstrThe sort order of the returned records.[optional] [default to 'desc']
sort_by_valueboolThe flag that defines the sort type, by count or value.[optional] [default to False]
}

Example​

from sailpoint.access_model_metadata.models.type_ahead_query import TypeAheadQuery

type_ahead_query = TypeAheadQuery(
query='Work',
var_field='source.name',
nested_type='access',
max_expansions=10,
size=100,
sort='desc',
sort_by_value=True
)

[Back to top]