Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Add install by OpenSearch #15

Open
georgjaehnig opened this issue Dec 24, 2018 · 0 comments
Open

[Feature request] Add install by OpenSearch #15

georgjaehnig opened this issue Dec 24, 2018 · 0 comments

Comments

@georgjaehnig
Copy link

georgjaehnig commented Dec 24, 2018

First thanks a lot for this great little app!

Right now, adding a custom search engine means

  • find search template URL and replace the search term with %s
  • add it in the Settings to one of Custom 1 to 3

I'd suggest to make adding possible via the OpenSearch protocol. Many websites already use it: they have a HTML tag on their main page, like here:

<link 
  rel="search" 
  type="application/opensearchdescription+xml" 
  href="https://www.findfind.it/opensearch/n/de.deu"
  title="FindFind.it: de.deu"
/>

This tag refers to an XML file which then contains a search template URL:

<Url
  xmlns:s="http://serchilo.net/opensearchextensions/1.0/"
  type="text/html"
  method="get"
  template="https://www.findfind.it/n/de.deu?query={searchTerms}"
/>

So this can be then used to add the search engine to Simple Search.

Even more the OpenSearch protocol also can specify a tag for the suggestions, as requested in #11:

<Url
  type="application/x-suggestions+json"
  template="https://www.findfind.it/opensearch-suggestions/n/de.deu?query={searchTerms}"
/>

So implementing this feature would allow users to simply drop to Simple Search the main URL of any search engine.

What do you think? Let me know if you need any help to implement this. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant