THIS SDK ISDEPRECATED.

We rolled out a new and better SDK for you.

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.

1FuzzySearchEngineDescriptor fuzzySearchEngineDescriptor = new FuzzySearchEngineDescriptor.Builder()
2 .typeAhead(true)
3 .build()
4
5return new FuzzySearchSpecification.Builder(text)
6 .searchEngineDescriptor(fuzzySearchEngineDescriptor)
7 .locationDescriptor(fuzzyLocationDescriptor)
8 .build();
1val searchEngineDescriptor = FuzzySearchEngineDescriptor.Builder()
2 .typeAhead(true)
3 .build()
4val fuzzySearchSpecification = FuzzySearchSpecification.Builder(term)
5 .searchEngineDescriptor(searchEngineDescriptor)
6 .locationDescriptor(locationDescriptorBuilder.build())
7 .build()