Hello,
we've got a list of search-result mappings, e.g. a simple url mapping might look like
"stackoverflow" -> "www.stackoverflow.com" "joel" -> "www.joelonsoftware.com"
so searching for the exact phrases is working fine.
Now we're looking for an incremental search / typeahead, e.g. "stackover" would also return "www.stackoverflow.com". We could of course populate our maps accordingly, e.g. put every possible string into the map, starting with all variations of a given min size
-> map keys:
stack -> stackoverflow ... stackoverf -> stackoverflow stackoverfl -> stackoverflow stackoverflo -> stackoverflow stackoverflow -> stackoverflow
However that would mean a higher memory footprint that necessary (I guess).
Any suggestions?