使用包含按名称进行的Apigee查询不起作用

时间:2014-08-12 20:01:34

标签: apigee

Apigee文档提供了以下示例:

/restaurants?ql=select * where name contains 'diner' order by name asc

但是当我尝试使用属性“name”的“contains”比较来查询我的Collection“Articles”时,我收到一个错误。我可以使用包含“名称”之外的任何属性进行查询。即使使用门户网站,它也会给我以下错误消息:

error getting articles: Entity 'article' with property named 'name' is not full text indexed. You cannot use the 'contains' operand on this field

1 个答案:

答案 0 :(得分:0)

请严格使用名称字段作为餐馆名称,并添加另一个名为" diner"您可以设置为是或否。名称在Usergrid / App Services中专门处理。