When using AggressiveMatchOnISBN or AggressiveMatchOnISSN preferences instead of UseQueryParser the search for duplicates fails. ES don't give any results, it seems that the problem is the query string.
Created attachment 86778 [details] [review] Elastic fix for matching records
Bug 22545: C4::Matcher::get_matches aggressive isbn and issn search don't give any results with ES TEST PLAN: - Use Elastic as search engine - Turn off UseQueryParser systempreference - Turn on AggressiveMatchOnISBN systempreference - Stage records with ISBN rule - See that there are no matches - Apply the patch - Stage records again - See that matches are found
How does the fix work? The patch commit doesn't explain it, could you add a short description there, too.
(In reply to Joonas Kylmälä from comment #3) > How does the fix work? The patch commit doesn't explain it, could you add a > short description there, too. When using Elastic the get_matches uses the same search terms as query parser since the Elastic CCL support is lacking.
What about fixing this part of Elasticsearch CCL support in Koha?
(In reply to Joonas Kylmälä from comment #5) > What about fixing this part of Elasticsearch CCL support in Koha? Yes, that would be the ideal situation. Librarians have learned to search from Zebra with CCL.
I went about this in a different way on Bug 23322, rather than enabling QueryParser solution I fixed the Non-QP solution Can you check if the patch there solves your issue and makes sense?
It would be great to get an answer to the above Johanna, I'm very interested to know whether this bug is resolved for you with that alternative implementation or whether we still need to work here.
(In reply to Nick Clemens from comment #7) > I went about this in a different way on Bug 23322, rather than enabling > QueryParser solution I fixed the Non-QP solution > > Can you check if the patch there solves your issue and makes sense? I tested this and it solves my bug, awesome! Your solution makes more sense than mine. :)
Changing this to a duplicate of bug 23322 then. *** This bug has been marked as a duplicate of bug 23322 ***