[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 08:18:24 CET 2020


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

--- Comment #43 from David Cook <dcook at prosentient.com.au> ---
Whoa... added unit tests when UseQueryParser is enabled and it's giving
unpredictable results. 

Half the time, the expected result is correct and half the time it is wrong. It
looks like it's swapping the order of the operands around. Bizarre.
#          got: '@or @or @attr 1=1016 @attr 5=1 @attr 4=6 "test" @attr 2=102
@attr 9=34 @attr 5=1 @attr 4=6 "test" @attr 2=102 @attr 9=20 @attr 5=1 @attr
4=6 "test"'
#     expected: '@or @or @attr 1=1016 @attr 5=1 @attr 4=6 "test" @attr 2=102
@attr 9=20 @attr 5=1 @attr 4=6 "test" @attr 2=102 @attr 9=34 @attr 5=1 @attr
4=6 "test"'

I don't know what to do about that... it'll unpredictably bust the tests on
master, but it is arguably a problem with the QueryParser or at least a problem
of evaluating the query based on string matching instead of parsing the query
and analyzing it logically...

I think I'll leave out that test for now... especiallys ince we are planning to
remove the QueryParser...

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


More information about the Koha-bugs mailing list