Kimtaro Admin
at 2023-10-19 09:59:04 UTC
Great idea. I’ll see if I can do this quickly on the current site, or ifs something I’ll add to the next version of the site.
Kimtaro Admin
at 2023-10-21 10:57:43 UTC
I just fixed the opensearch.xml file as you suggested. Thanks!
lambdawinner829
at 2023-11-16 06:07:35 UTC
I’m not sure how OpenSearch is actually supposed to work. I mean as a software. I know how to be a user but I’ve never delved deep into coding.
Log in to reply.
Improve OpenSearch engine definition to allow searching for multiple words
Currently the search engine definition at /opensearch.xml uses the URL template https://jisho.org/search/{searchTerms}, which doesn't work well with multi-word queries: e.g. searching for “express train” will result in a search for “express+train” and 0 results.
However, using https://jisho.org/search?keyword={searchTerms} works perfectly as far as I can tell, because the term is interpreted correctly as a query parameter value.
I just installed a custom search engine and I think the change would help others.