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
..
2021-03-01 10:52:39 +01:00
2021-03-06 10:03:00 +01:00
2021-03-27 17:43:36 +01:00
2021-01-18 08:19:44 +01:00
2020-12-01 15:21:19 +01:00
2021-03-25 09:37:37 +01:00
2021-01-13 14:07:39 +01:00
2021-03-28 21:54:37 -07:00
2021-03-22 08:22:59 +01:00
2021-03-27 19:10:54 +01:00
2021-01-11 22:59:52 +01:00
2021-03-01 19:12:32 +01:00
2020-12-11 14:37:08 +01:00
2021-02-24 18:48:36 +01:00
2020-10-28 08:09:25 +01:00
2021-03-05 10:56:46 +00:00
2021-03-08 11:35:08 +01:00
2020-11-23 19:13:29 +01:00
2021-03-01 19:12:32 +01:00
2020-12-11 14:37:08 +01:00
2021-03-06 12:12:35 +01:00
2020-12-20 09:46:53 +01:00
2020-10-25 18:06:18 +01:00
2021-03-27 16:54:01 +01:00
2021-02-28 11:37:06 +01:00
2020-12-20 09:46:53 +01:00
2021-03-27 20:30:08 +01:00
2021-03-06 12:12:35 +01:00
2021-04-03 18:18:50 +02:00
2021-02-08 23:58:54 -05:00