问题标签 [opensearch]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
255 浏览

django - reverse('opensearch') 如何在 shell 中工作,但在测试中失败?

我正在尝试将 django-lean 安装到我的应用程序中。

在我的应用 App 中使用了开放式搜索。

我可以在 Python shell 中反转('opensearch')。然而,在测试中, reverse('opensearch') * NoReverseMatch: Reverse for 'opensearch' with arguments '()' 和关键字参数

这是从测试中做同样的尝试,由 pdb.set_trace() 停止

这是来自 urls.py 的代码:

最后,这是失败测试的跟踪路由:

0 投票
1 回答
1380 浏览

google-chrome - 谷歌浏览器:搜索 API?

我正在寻找一种在我的网站上公开 Google 搜索功能的方法,以便 chrome 用户可以使用上下文相关搜索(例如:)

Chrome 搜索 http://img19.imageshack.us/img19/7762/chromesearch.png

我知道 YouTube 归谷歌所有,但我不记得以前在哪些第三方网站上看到过这个功能。无论如何,我在 google-labs 或 code.google.com 上找不到任何对此的参考,所以我求助于你。

如果有人对如何公开此内容或参考文档有任何见解,我将不胜感激。

0 投票
2 回答
485 浏览

rest - 使用 RESTful 架构访问多维数据

我们应该如何使用 REST 以高效的方式访问多维数据?选择似乎是 hi-REST、lo-REST 或 OpenSearch(这似乎是 lo-REST 的一种特殊化)。

0 投票
1 回答
350 浏览

.net - .net OpenSearch 库

总而言之,是一个可以获取结果集并生成开放搜索提要的 .net 库吗?另外,创建一个需要多少工作?如果您能指导我访问一些在线资源,那就太好了。

谢谢。

编辑:我不是在寻找搜索引擎。我想将结果集公开给另一个支持开放搜索的网站。当用户在其他网站输入关键字时,该网站会向我的系统发送请求,我将根据该关键字以符合开放搜索标准的格式返回结果集。

0 投票
3 回答
7392 浏览

xml - Add URL Parameters to the DuckDuckGo searchplugin for Firefox

Here is the xml file for a basic https query to DuckDuckGo:

I want to have certain parameters (namely, kb=-1 and kg=p (link)) append to a search that's performed through Firefox's search box. I've tried adding it using "<Param name="paramName1" value="paramValue1"/>" but that doesn't work.

Also, although adding kg=p will make all subsequent requests using POST (rather than GET), how can I make the initial one a POST request. I tried changing method="GET" to "POST", but that doesn't work.

0 投票
1 回答
786 浏览

c# - 在 opensearch 中自动完成

我已经使用 WCF 为 opensearch 完成了自动完成功能。但是我们使用的是 3.5,所以我现在需要在不使用 WCF 的情况下实现相同的目标。

任何想法或请给我任何有用的链接。

我的场景是当我输入名称时,它应该从数据库中获取相关名称并显示。我有一个从数据库中获取数据的网络方法。我需要的只是如何在 opensearch.xml 中提及模板。我说的是 wcfservice。

请帮我

0 投票
2 回答
657 浏览

firefox - opensearch ie & firefox 生成器

我有一些我经常搜索的网站,我想在我的 firefox 和 ie 浏览器上快速搜索它们(打开搜索),我找不到可以生成适用于 ff 和 ie 的代码的东西。 /site 生成快速搜索按钮很容易与 xml 混淆?

0 投票
1 回答
5536 浏览

google-chrome - 在网站中启用“标签搜索”

我正在寻找一种方法来在我的网站上启用 Google Chrome 的“搜索标签”功能,有人有这方面的经验吗?

谷歌没有为我提供足够的信息,我猜这个社区更快。

非常感激

0 投票
1 回答
4164 浏览

api - api(opensearch)与普通网络界面的维基百科搜索结果不同?

对于文本查询“major+histocompatibility+complex+class+II+antigens”,我使用 web 和 api 接口得到不同的结果。有没有办法使用 api 获得与 web 界面相同的结果?

使用网页界面查询:

http://en.wikipedia.org/w/api.php?action=opensearch&search=major+histocompatibility+complex+class+II+antigens

使用 api 查询:

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-to-access-wikipedia-data),但他们都没有处理这个问题。opensearch api 是否使用不同的搜索引擎?

0 投票
1 回答
6061 浏览

google-chrome - 在我的网站上启用按标签在 google chrome 中搜索

可能重复:
如何为您的网站添加 google chrome 多功能框搜索支持?

我有一个关于如何为我自己的网站启用谷歌浏览器中的“按标签搜索”功能的问题。

我已经链接了一个 opensearch.xml 文档,其中包括以下内容:

<Url type="text/html" template="http://localhost:3000/?search={searchTerms}"/>

但是,这仍然不起作用。难道我做错了什么?

谢谢!