I want to implement an autocompletion mechanism for aerospike but I don't how I cando it .Is it possible to make an autocompletion mechanism with aerospike? If yes how can it be implemented?
Already deployed one with existing feature set. It works roughly like this:
Autocomplete-Feature with Aerospike:
The main takeaway from this is that you will have to reduce both your results and your search terms to the same identifying token (here 3 ascii characters) that will act as your primary key for records.
Note: this won't scale indefinetely in terms of list size. You need to choose your prefix-length carefully, so there ain't too many proposals that need to be read from db and transfered to the client but also watch out for Aerospike's max record size if not using an large, infinitely scalable data type like the large list.