维基百科搜索结果API(OpenSearch的)与正常的Web界面有什么不同? [英] Wikipedia search results different for api (opensearch) vs normal web interface?

查看:199
本文介绍了维基百科搜索结果API(OpenSearch的)与正常的Web界面有什么不同?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有关的文本查询主要组织相容性+ + +复合+级II +抗原我得到使用Web和API接口不同的结果。有没有一种方法来获得相同的结果使用API​​的Web界面?

For the text query "major+histocompatibility+complex+class+II+antigens" I get different results using the web and api interfaces. Is there a way to get the same results as the web interface using the api?

使用Web界面查询:

<一个href=\"http://en.wikipedia.org/w/api.php?action=opensearch&search=major+histocompatibility+complex+class+II+antigens\" rel=\"nofollow\">http://en.wikipedia.org/w/api.php?action=opensearch&search=major+histocompatibility+complex+class+II+antigens

与API查询:

<一个href=\"http://en.wikipedia.org/w/api.php?action=opensearch&search=major+histocompatibility+complex+class+II+antigens\" rel=\"nofollow\">http://en.wikipedia.org/w/api.php?action=opensearch&search=major+histocompatibility+complex+class+II+antigens

我看了一下API参考(http://en.wikipedia.org/w/api.php)和SO(http://stackoverflow.com/questions/1397938/is-there-any-api上提出质疑-in-Java到访问维基百科的数据),但他们没有处理这个问题。使用不同的搜索引擎的OpenSearch API?

I looked at the api reference (http://en.wikipedia.org/w/api.php) and question on SO (http://stackoverflow.com/questions/1397938/is-there-any-api-in-java-to-access-wikipedia-data) but none of them dealt with this issue. Is the opensearch api using a different search engine?

推荐答案

行动= OpenSearch的 不做你的想法。它搜索与输入preFIX开始,在搜索框或类似输入完成后使用页面标题。特殊的API相当于:搜索是 列表=搜索

这篇关于维基百科搜索结果API(OpenSearch的)与正常的Web界面有什么不同?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆