My forum uses the Google App Engine Search Api. So naturally I would like to be able to find partial and misspelled words. But the api does not do that. Does anyone know work arounds or better alternatives to this api?
For the partial match I can imagine blowing up each word in a forum comment into a set of substrings. But that seems rather expensive. Just think: If a comment has 60 words (say 500 characters total) than saving that single forum post would add up to a huge text field in the Document
Document.Builder builder = Document.newBuilder();
builder.addField(Field.newBuilder().setName(“comment”).setText(comment))
This is rather ridiculous especially a regex matcher would be a lot more economical. Which begs the question: why is the query not using regex matching so that partial words can be found? As for misspelling there are a number of algorithms for doing this, why isn’t the App engine Seach api offering it?
Now of course I am posting this here hoping that I am wrong and someone will show me that the Search Api indeed provides all of these functionalities. I have been looking through many tutorials online and not much so far. So the question again: Does the App Engine Search Api allow for partial text matching
and misspelled text matching
? If not, how might I hack it?