You can use the Yahoo Spelling API, etc., if your requests are very general. But if you have a domain specific dictionary, then you'd better use Apache Solr .
You can use it to index your 2MM entries, simply! And use it as a search engine with cut, etc. It also generates a spell check index from your entries, which you can use for your βdid you meanβ? or auto suggest function. It is also extremely difficult to integrate into any language because of its RESTful API
Bottom line: if you are looking for a long-term solution that can handle several things, in addition to spell checking, for example, search / auto suggest / cut, etc. Solr is the way to go.
Mikos
source share