diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2016-09-10 15:21:58 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-09-10 15:21:58 +0200 |
| commit | 34039ab85f31a72ff087b607a774c04272dfceb9 (patch) | |
| tree | 3017b508546a935d05e8e01fc187bcd6d8716bf1 /docs/admin | |
| parent | b60dd8b9bae0d9e5bef517cb2d9aadea161a626c (diff) | |
| parent | 93052da6a409922de022f8198a91a3547b4ec9c1 (diff) | |
Merge pull request #679 from kvch/gh-pages
docs: time_range search param, embed
Diffstat (limited to 'docs/admin')
| -rw-r--r-- | docs/admin/api.rst | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/admin/api.rst b/docs/admin/api.rst index 94508a28c..8d6162247 100644 --- a/docs/admin/api.rst +++ b/docs/admin/api.rst @@ -76,3 +76,19 @@ Sample response ], "safe_search": 0 } + +Embed search bar +---------------- + +The search bar can be embedded into websites. Just paste the example into the HTML of the site. +URL of the searx instance and values are customizable. + +.. code:: html + + <form method="post" action="https://searx.me/"> + <!-- search query --> <input type="text" name="q" /> + <!-- categories --> <input type="hidden" name="categories" value="general,social media" /> + <!-- language --> <input type="hidden" name="lang" value="all" /> + <!-- locale --> <input type="hidden" name="locale" value="en" /> + <!-- date filter --> <input type="hidden" name="time_range" value="month" /> + </form> |