Triggers 如何在OpenSearchDescription xml文件中定义触发器关键字?

Triggers 如何在OpenSearchDescription xml文件中定义触发器关键字?,triggers,subdomain,keyword,opensearch,omnibox,Triggers,Subdomain,Keyword,Opensearch,Omnibox,我正在尝试获得一个开放式搜索定义来处理子域 我在html的中添加了正确的行 例如: <link rel="search" type="application/opensearchdescription+xml" title="Example" href="http://www.example.org/opensearch.xml" /> 在opensearch.xml中: <OpenSearchDescription xmlns="http://a9.com/-/spec

我正在尝试获得一个开放式搜索定义来处理子域

我在html的
中添加了正确的行

例如:

<link rel="search" type="application/opensearchdescription+xml" title="Example" href="http://www.example.org/opensearch.xml" />

在opensearch.xml中:

<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<ShortName>Example</ShortName>
<LongName>Example Search</LongName>
<Description>Example Description</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image width="16" height="16" type="image/x-icon">http://www.example.org/favicon.ico</Image>
<Url type="text/html" method="get" template="http://www.example.org/search/{searchTerms}" />
</OpenSearchDescription>

例子
示例搜索
示例说明
UTF-8
http://www.example.org/favicon.ico
当我访问Google Chrome时,搜索被正确地添加到omnibox设置中。触发器关键字变为“example.org”

但是,当我访问时,在
中有相同的行,搜索会添加触发器关键字“subdomain.example.org”,而不是“example.org”

有办法解决这个问题吗


我在文档中没有找到关于如何设置触发器关键字的任何信息。

我也想知道。也许Chrome的OpenSearch处理将主机名硬编码为默认关键字。如果它公开了一种自己定义这个字符串的方法,那就太好了。如果Chrome只使用ShortName属性,那就太棒了。我在Chrome源代码中找不到Chrome查看OSD属性来设置关键字的任何地方。