[Koha-bugs] [Bug 12430] Search truncation disables relevance ranking when not using QueryParser

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Feb 18 04:06:45 CET 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12430

--- Comment #42 from David Cook <dcook at prosentient.com.au> ---
(In reply to David Cook from comment #41)
> Created attachment 99142 [details] [review]
> First Draft buildQuery unit test

This isn't complete yet, but it's a first pass before I have to run out of the
office for a few hours.

I need to add more permutations to the tests:

1. like a query with no * or QueryAutoTruncate to see if QueryWeightFields
still works
2. like a more complex CCL/CCLish query
3. Turn on UseQueryParser (even if I think we should soon remove QueryParser
from Koha)
4. Add limits to the unit tests

Note that buildQuery spits out a lot of warnings, but I don't think they're
relevant for this test. Rather, I think they're just indicative that buildQuery
isn't very well written. Of course, these unit tests could be the basis for
improving it. Thanks, Jonathan, for poking me on this one.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list