问题
Collection - Post
{
"postId" : "post_124",
"title" : "World population 2020"
}
How to write a query that returns posts having the string "World population" in the "title" field?
回答1:
Firestore doesn't support this level of query. See Full-text search for a possible work-around/solution. The only expressions available are:
<, <=, ==, >, >=, array-contains, in, or array-contains-any.
来源:https://stackoverflow.com/questions/58760663/firestore-how-to-apply-string-contains-condition-on-a-field-while-querying