我怎样才能只返回具有显着类型的结果?
IE 当我有默认示例时:
https://www.googleapis.com/freebase/v1/search?query=nirvana&indent=true
它通常返回如下内容:
{
"mid": "/m/015k7",
"name": "Gautama Buddha",
"notable": {
"name": "Deity",
"id": "/religion/deity"
},
"lang": "en",
"score": 24.125902
}...
这是完美的,但有时它没有显着的类型并且只返回:
{
"mid": "/m/01rkx5",
"name": "Mahayana Mahaparinirvana Sutra",
"lang": "en",
"score": 22.350945
},
除了具有显着类型的结果之外,我如何过滤掉所有结果?
我试过设置
filter = (all notable) but it expects (all notable:something)
有任何想法吗?