我正在尝试使用 objectify 进行查询以显示<Fight>
eventEid = 111 的列表。以下调用是否正确?我运行它,它返回 0 ......但它很奇怪,因为它看起来正确
请注意,eventEid 很长。这会影响查询吗?
ofy().load().type(Fight.class).filter("eventEid", 111).list();
我正在尝试使用 objectify 进行查询以显示<Fight>
eventEid = 111 的列表。以下调用是否正确?我运行它,它返回 0 ......但它很奇怪,因为它看起来正确
请注意,eventEid 很长。这会影响查询吗?
ofy().load().type(Fight.class).filter("eventEid", 111).list();
Make sure that eventEid is indexed property.
Filtering on unindexed properties returns no results.
https://developers.google.com/appengine/docs/java/datastore/queries#Filters