2013-10-06 31 views
0

下面的FQL查询导致NoIndexFunctionException,因为'current_location'不可索引。如何使用不可索引字段筛选FQL查询

https://graph.facebook.com/fql?q=SELECT%20uid,%20name,%20current_location%20FROM%20user%20WHERE%20uid=me()%20OR%20uid%20AND%20current_location%20IN%20(SELECT%20uid2%20FROM%20friend%20WHERE%20uid1=me())&access_token=CCAAC... 

是否有任何替代方案过滤非可转位字段?

+1

没有办法做到这一点。看看这个答案由Facebook开发人员:http://stackoverflow.com/questions/5821969/how-could-i-use-fql-to-query-all-the-events-without-using-indexable-column-which/ 5824449#5824449 – sromku

+0

谢谢@sromku有道理。 – Rich

回答

0

对于过滤非可转位字段,Ibrahim Faour没有其他选择,Facebook员工已经解释了这个post中索引背后的技术推理。