2

I am trying to form a GQL query that:

SELECT * FROM IvlsRun where origInstrument = 'Catalyst_Dx' and practiceId != '100004'

Finds all IvlsRun(s) where the origInstrument = 'Catalyst_Dx'... but I don't want any of them with practiceId = 10004.

Everytime I add the practiceId != 100004 or practiceId != '100004' I get an error.

I am new to GQL. I am doing this through the datastore viewer.

The error is pretty basic, telling me I don't know how to use GQL:

Learn more about GQL syntax. no matching index found.

4

1 回答 1

2

当您在一个属性上使用一个或多个不等式过滤器并在其他属性上使用一个或多个等式过滤器时,您必须定义自定义索引。请参阅索引配置

于 2013-01-15T19:43:10.733 回答