I'm busy implementing indexed search in Flutter / Dart using algolia. I've ran into a problem that's not an actual problem. I'm struggling to figure out how to query for autocomplete results. Meaning, if I pass in the term "burg" I should be getting back "bacon burger", "avo burger", etc.
The problem is not with flutter, I can do everything I want to in flutter. The problem is not with dart, I know my way around Dart well. The problem is with Algolia docs and how to implement autocomplete if they don't have a provided widget for the platform.
The things I've been googling that I would like to know is.
- What do I pass into the query to indicate that the results I want should be auto complete results and not complete match. I didn't type all of that into google but that's basically what I've been trying to search.
I'm using this plugin and have setup the instance properly as I can get results back from my indexed data on Algolia. I'm setting the facets and passing in values for those facetFilters. It works great for normal search but I can't figure out, from the docs, how to adjust my query to make it return auto complete results for potential matches and not the results of the actual search.
I hope that's clear. to make it even clearer. Things that I don't need.
- How to setup Algolia (That's done)
- How to use algolia in Flutter (That's done)
- Using a certain architecture to make this easier (that's done). I just need to add 1 function to return the titles of auto complete and the functionality will work
- How to build an auto complete widget (That's done)
- Basically no flutter specific, UI specific or architecture specific help. Just how to query for auto complete results.
I've looked at Query suggestions on Algolia docs but the code isn't very clear on what I need to query if i want to manually get these suggestions from the algolia instance. I've looked at autocomplete js queries are hidden, or at least from my eyes. I've looked at Autocomplete Vue to no avail. And every other auto complete link that popped up.