Using the GAE search API is it possible to search for a partial match?
I’m trying to create autocomplete functionality where the term would be a partial word. eg.
> b
> bui
> build
would all return “building”.
How is this possible with GAE?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Though LIKE statement (partial match) is not supported in Full Text Search, but you could hack around it.
First, tokenize the data string for all possible substrings (hello = h, he, hel, lo, etc.)
Build an index + document (Search API) using the tokenized strings
Perform search, and walah!
https://code.luasoftware.com/tutorials/google-app-engine/partial-search-on-gae-with-search-api/