SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Find a file
Markus Heiser 169438137f [fix] url bar autocomplete (opensearch suggestions)
Since #2593 is merged the OpenSearch-Format is buggy.  The loop in [1] will
change raw_text_query object and this will change also the value of
`raw_text_query.query` on every `raw_text_query.changeQuery(result)`.

This patch fixes this issue by storing the initial query value in `sug_prefix`.

[1] ac0fdc3b96/searx/webapp.py (L804-L806)

OpenSearch-Format::

    [ "<query>",
      [ "<term 1>", "<term 2>", ... "<term n>" ],
      [ "<content 1>", "<content 2>", ..., "<content n>" ],
      [ "<url 1>", "<url 2>", ..., "<url n>" ]
    ]

- https://www.google.com/support/enterprise/static/gsa/docs/admin/current/gsa_doc_set/xml_reference/query_suggestion.html#1080002
- https://developer.mozilla.org/en-US/docs/Archive/Add-ons/Supporting_search_suggestions_in_search_plugins#implementing_search_suggestion_support_on_the_server

Legacy-Format::

    [ "<term 1>", "<term 2>", ..., "<term n>" ]

- https://www.google.com/support/enterprise/static/gsa/docs/admin/current/gsa_doc_set/xml_reference/query_suggestion.html#1081079

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-04-03 18:18:50 +02:00
.github Fix integration.yml 2021-03-05 11:54:45 +01:00
dockerfiles [enh] add searx.shared 2021-01-12 11:47:17 +01:00
docs [mod] by default allow only HTTPS, not HTTP 2021-03-08 11:35:08 +01:00
examples Fix whitespaces 2016-07-11 18:52:37 +07:00
searx [fix] url bar autocomplete (opensearch suggestions) 2021-04-03 18:18:50 +02:00
searx_extra [mod] upgrade pygments 2021-03-16 09:07:08 +01:00
tests [enh] add ability to send engine data to subsequent requests 2021-03-06 12:12:35 +01:00
utils [mod] LXC switch to Fedora 33 / Fedora 31 reached its EOL 2021-03-05 13:17:47 +01:00
.codecov.yml codecov : update the commit status 2017-09-28 19:43:58 +02:00
.config.sh [mod] utils/searx.sh install: create branch if not already exists 2020-12-23 16:06:06 +01:00
.coveragerc [mod] use github actions instead of travis 2020-11-17 15:09:06 +01:00
.dir-locals.el [mod] remove obsolete virtualenv command 2020-12-18 22:31:13 +01:00
.dockerignore [enh] update documentation about docker 2020-07-22 14:58:04 +02:00
.gitattributes [enh] add simple theme (WIP) 2017-08-06 16:04:21 +02:00
.gitignore [enh] Add onions category with Ahmia, Not Evil and Torch 2020-10-25 17:59:05 -07:00
.landscape.yaml Add landscape.io configuration 2014-07-09 22:49:38 +02:00
.pylintrc [mod] pylint: add extension-pkg-whitelist=lxml.etree 2020-11-02 15:55:19 +01:00
AUTHORS.rst [doc] add new contributors to the authors file 2021-03-27 19:38:24 +01:00
babel.cfg [enh] babel.cfg added 2014-01-22 00:15:42 +01:00
CHANGELOG.rst [enh] release v1.0.0 2021-03-27 20:30:08 +01:00
CONTRIBUTING.md [mod] documentations & comments: update http://* URL to https://*. 2020-12-04 16:52:25 +01:00
Dockerfile [mod] Dockerfile: remove protobuff dependency 2021-03-25 17:09:28 +01:00
LICENSE [fix] full AGPLv3+ license according to #382 2015-07-04 18:23:54 +02:00
Makefile Add Solr engine 2021-03-13 21:18:09 +01:00
manage.sh [mod] get rid of searx/brand.py 2021-01-11 22:12:38 +01:00
PULL_REQUEST_TEMPLATE.md Add PR template and contribution guidelines 2020-07-10 17:10:02 +02:00
README.rst [fix] migration from github.com/asciimoo/searx to github.com/searx/searx : fix URLs 2020-09-28 16:44:14 +02:00
requirements-dev.txt Bump linuxdoc from 20210110 to 20210324 2021-03-26 08:13:11 +00:00
requirements.txt Bump lxml from 4.6.2 to 4.6.3 2021-03-26 06:45:14 +00:00
setup.py Add searx_extra package 2021-03-04 11:59:14 +01:00
tox.ini [enh] tox.ini added to rewrite standard pep8 rules 2015-01-02 12:26:21 +01:00


searx install searx homepage searx wiki AGPL License Issues commits OpenCollective searx backers OpenCollective searx sponsors

Privacy-respecting, hackable metasearch engine / pronunciation ːks.

If you are looking for running instances, ready to use, then visit searx.space.

Otherwise jump to the user, admin and developer handbooks you will find on our homepage.

contact:

openhub // twitter // IRC: #searx @ freenode


gluten free