Add facet endpoints to open search plugins

RESOLVED WONTFIX

Status

Firefox for Android Graveyard
Search Activity
RESOLVED WONTFIX
4 years ago
3 months ago

People

(Reporter: eedens, Unassigned)

Tracking

Details

(Reporter)

Description

4 years ago
We need to support faceted end points (Bug 1042960). Since we are depending on the opensearch plugins to specify search engine information, we could add facets as <Url> elements.

We can use Bing.xml [1] as an example, where there are different Url entities (differentiated by the `type` attr) for both phone and tablet screen sizes.

http://dxr.mozilla.org/mozilla-central/source/mobile/locales/en-US/searchplugins/bing.xml
(Reporter)

Updated

4 years ago
Blocks: 1017135
(Reporter)

Comment 1

4 years ago
We can extract the user's current query by using the {searchTerms} param from the open search files, http://dxr.mozilla.org/mozilla-central/source/mobile/locales/en-US/searchplugins/bing.xml#20
Blocks: 1041604
(Reporter)

Comment 2

4 years ago
Whoops, note meant for bug 1041604
I'll note that "type" is probably the wrong approach here, and we should be using phone/tablet/etc as rel values, since "type" means what type of response is expected, and they'll all be text/html...
(Reporter)

Updated

4 years ago
Blocks: 1056302
(Reporter)

Comment 4

4 years ago
rel it is! From email discussion:

> Mike Connor <mconnor@mozilla.com> wrote:
> http://www.opensearch.org/Specifications/OpenSearch/1.1#Url_rel_values is
> probably a good start.  We recently added |rel=“searchform”| to the desktop
> side to replace the old MozSearch <SearchForm> element.
>
> In terms of facets, I would suggest we would define as many rel values as we
> want to use, and present native facets based on the presence of <Url>
> elements with the correct rel attribute.

Here's an example of using rel: http://dxr.mozilla.org/mozilla-central/source/browser/locales/en-US/searchplugins/google.xml#35

Comment 5

6 months ago
This is an ex-Search Activity now (bug 1221344).
Status: NEW → RESOLVED
Last Resolved: 6 months ago
Resolution: --- → WONTFIX

Updated

3 months ago
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.