Sorry, you need to enable JavaScript to visit this website.

Typeahead parameter

Offer your users search suggestions while they type with the "typeahead" flag.

Sample use case: You were recommended a place to visit, but you can’t remember its name. You start searching in your app. After entering a few letters you see the place you’re looking for! Use the following code snippet to try this in your app.

_

FuzzySearchEngineDescriptor fuzzySearchEngineDescriptor = new FuzzySearchEngineDescriptor.Builder()
        .typeAhead(true)
        .build();

return new FuzzySearchSpecification.Builder(text)
        .searchEngineDescriptor(fuzzySearchEngineDescriptor)
        .locationDescriptor(fuzzyLocationDescriptor)
        .build();
val searchEngineDescriptor = FuzzySearchEngineDescriptor.Builder()
    .typeAhead(true)
    .build()
val fuzzySearchSpecification = FuzzySearchSpecification.Builder(term)
    .searchEngineDescriptor(searchEngineDescriptor)
    .locationDescriptor(locationDescriptorBuilder.build())
    .build()