我就如何建立一個索引谷歌數據存儲做下面的查詢工作不等式過濾谷歌數據存儲指數:如何配置與股權過濾
SELECT * FROM地方類型=「東西」和geohashes> ='XXX'AND geohashes < ='YYY'
我創建了以下索引。然而,當我這樣做查詢,我得到了一個錯誤信息:「沒有匹配的索引中找到」
<?xml version="1.0" encoding="utf-8"?>
<datastore-indexes
autoGenerate="true">
<datastore-index kind="Place" ancestor="false">
<property name="geohashes" direction="asc" />
<property name="geohashes" direction="desc" />
<property name="type" direction="asc" />
</datastore-index>
<datastore-index kind="Place" ancestor="false">
<property name="geohashes" direction="asc" />
<property name="type" direction="asc"/>
</datastore-index>
<datastore-index kind="Place" ancestor="false">
<property name="geohashes" direction="desc" />
<property name="type" direction="asc" />
</datastore-index>
</datastore-indexes>
如何建立在數據存儲的索引,這樣我可以做上面的查詢感謝
您是否嘗試過運行在谷歌控制檯查詢? – shivg
是的。但結果是「您需要一個索引來執行此查詢。」 – Kit
感謝您的回覆。我曾嘗試在屬性「geohash」上使用> =,<=同時進行查詢。有用。但是,當我在查詢中添加更多屬性時。他們向我顯示錯誤信息。 – Kit