0
是否可以使用Google Cloud Datastore API從實體中查詢listValue。使用Google Datastore API查詢實體中的listValue
例如,如果我有一個Post實體的博客:
[
{
"title": "My First Post",
"tags": ["google", "android"]
},
{
"title": "My Second Post",
"tags": ["google"]
}
]
顯然上面的數據是正確的標籤(例如用listValue,stringValue的等)。是否可以通過查詢向我提供所有具有等於「android」標籤的Post實體。
我已經嘗試了幾件事情沒有成功。標準和GQL查詢。我甚至嘗試應用通常在使用Google App Engine實例(python)中的數據存儲時工作的一些GQL查詢,但它們似乎不適用於Google Cloud Datastore API。
任何幫助將不勝感激。
確保將此「標記」屬性編入索引。 –
@AndreiVolgin是它的索引。 –