Bug 28322

Summary: Did you mean feature does not work with Elasticsearch
Product: Koha Reporter: Caroline Cyr La Rose <caroline.cyr-la-rose>
Component: Searching - ElasticsearchAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Caroline Cyr La Rose 2021-05-11 19:17:25 UTC
Hi all!

We just upgraded one of our clients to Elasticsearch and they happened to use the Did you mean feature. 

It seems Did you mean only works with Zebra. It's trying to connect to Zebra. This is in opac-error.log

suggestion: oAuth error: Connect failed (10000) unix:/home/i/koha/alma-test-inlibro/var/run/zebradb/authoritysocket ZOOM: /inlibro/git/koha-alma-test-inlibro/opac/svc/suggestion, referer: http://alma-test.hapax.inlibro.net/cgi-bin/koha/opac-search.pl?q=chat

(btw, "chat" is "cat" in french :D )

I think we should at the very least put a warning on the admin page for the Did you mean feature that it only works with Zebra. Otherwise make the feature engine agnostic so that we can use it with either Zebra or ElasticSearch.

I don't know if Did you mean with elastic is necessary as there is a bz for autocomplete with ElasticSearch which does practically the same thing. (see bug 27113).