1
A
回答
1
没有太多添加到说什么狮子座:维基百科现在使用CirrusSearch延伸,所以当使用search API您必须参考https://mediawiki.org/wiki/Help:CirrusSearch#Prefer_phrase_matches告诉你use quotation marks:
{
"batchcomplete": "",
"continue": {
"sroffset": 1,
"continue": "-||"
},
"query": {
"searchinfo": {
"totalhits": 1100
},
"search": [
{
"ns": 0,
"title": "Woman in a Purple Coat",
"snippet": "costume, surrounded by a complex of abstract design and exotic color. <span class=\"searchmatch\">This</span> <span class=\"searchmatch\">is</span> <span class=\"searchmatch\">an</span> <span class=\"searchmatch\">example</span> of one of the final groups of oil paintings in Matisse's career, in",
"size": 1347,
"wordcount": 96,
"timestamp": "2016-10-20T16:52:48Z"
}
]
}
}
相关问题
- 1. 维基百科API查询返回xml
- 2. 全文检索精确匹配 - 双星
- 3. 维基百科API
- 4. 维基百科人们只搜索
- 5. API为维基百科的
- 6. 维基百科的JAVA API
- 7. Solr的只有返回精确匹配
- 8. 维基百科API搜索问题
- 9. 全文搜索仅返回精确匹配
- 10. 让所有的维基百科文章与精确的时间
- 11. 维基百科人物API
- 12. 获取维基百科API
- 13. 只搜索精确匹配
- 14. 使用维基百科API从页面检索内容列表
- 15. 使用维基百科API时,如何检索样式表?
- 16. 维基百科API调用没有返回结果
- 17. 维基百科API仅返回一小部分数据?
- 18. Elasticsearch搜索查询只返回精确匹配
- 19. 维基百科API解析动作只返回“其他语言”部分
- 20. mysql的全文检索精确匹配预期
- 21. 检索维基百科文章的第一段
- 22. 使用维基百科的API继续
- 23. 维基百科上的CORS错误API
- 24. 维基百科在Objective C中的API?
- 25. 维基百科API的限制
- 26. json中的维基百科API
- 27. 如何使用维基百科的API
- 28. Python的UnicodeEncodeError /维基百科API
- 29. 如何使用维基百科的API
- 30. 维基百科搜索框的Wikipedia API搜索
使用引号:HTTPS:/ /en.wikipedia.org/w/api.php?action=query&list=search&srsearch=%22This%20Is%20An%20Example%22&srwhat=text (请参阅官方文档:https://www.mediawiki.org/wiki/说明:CirrusSearch#Prefer_phrase_matches) – leo