Does the GAE experimental Full Text Search API provide an alternative to the SQL “LIKE statement”?
Thanks!
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.
No. The SQL
likestatement supports arbitrary substring matching – for instance, “abbatton” will be a match for “bat” – while fulltext search implements full text indexing, which uses normalization, stemming, and an inverted index to construct an index that is good at answering the sort of queries users tend to enter for textual documents.If you mean “does the Full Text search API provide an alternative for what SQL’s LIKE operator is commonly (mis)used for”, the answer is yes – since the most common application for SQL’s LIKE appears to be fulltext search, the Full Text Search API is actually better suited to this than LIKE for a number of reasons, including efficiency (‘LIKE’ requires scanning every row of the table), accuracy (Full Text search provides ranking, stemming, and other features), and eliminating false positives (see the example above).