Support opensearch on postgresql.org

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Support opensearch on postgresql.org

Dmitry Marakasov
Hi!

I propose to support OpenSearch [1] specification on postgresql.org,
which would allow anyone to easily add postgresql.org site search to
their browser. Using postgresql search directly is much more useful
than using generic search engine like google because it doesn't return
advertising or unrelevant results and seems to prefer the latest version
of documentation.

I've made a ready to use .xml description which can be pointed to from
postgresql.org pages with the following code in <head> block:

<link rel="search" type="application/opensearchdescription+xml" title="PostgreSQL" href="/opensearch-postgresql.xml">

--- opensearch-postgresql.xml begins here ---
<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
        <ShortName>PostgreSQL</ShortName>
        <LongName>PostgreSQL site search</LongName>
        <Description>Search PostgrelSQL site</Description>
        <Tags>postgresql database</Tags>
        <Image height="16" width="16" type="image/png">data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAHlBMVEUAAAA/Pz9/f39/f78/f38/f7+/v79/v78AAAD///9OmeNAAAAAAXRSTlMAQObYZgAAAAFiS0dECfHZpewAAAAHdElNRQfkCh8PGxJSGFGzAAAAcUlEQVQIHQXBMQ7CMBBFwedwAcuIPrbMCVjJ1PGHrSEFPRHQk3B/ZiDlUEqGweZXX/vIQS51u1PlkraJqrbKlxtH/Zrm7cxe5nIb2clcfooMeri0QLDrW3pmqN9m+mQYUtElAhDUIwDBOgBgEwCQRvgDlSUWvPhexnsAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjAtMTAtMzFUMTU6MTk6NTUrMDA6MDAzahANAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE5LTExLTA4VDEyOjIwOjM2KzAwOjAwLLlexwAAAABJRU5ErkJggg==</Image>
        <InputEncoding>UTF-8</InputEncoding>
        <OutputEncoding>UTF-8</OutputEncoding>
        <Url type="text/html" method="get" template="https://www.postgresql.org/search/?q={searchTerms}"/>
        <Query role="example" searchTerms="window functions"/>
        <Language>en-us</Language>
</OpenSearchDescription>
--- opensearch-postgresql.xml ends here ---

[1] https://en.wikipedia.org/wiki/OpenSearch

--
Dmitry Marakasov   .   55B5 0596 FF1E 8D84 5F56  9510 D35A 80DD F9D2 F77D
[hidden email]  ..:              https://github.com/AMDmi3