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

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jun 17 09:17:36 CEST 2014


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

--- Comment #4 from David Cook <dcook at prosentient.com.au> ---
Created attachment 28880
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=28880&action=edit
Bug 12430 - Truncation disables relevance ranking when not using QueryParser

The system preference "QueryWeightFields" is mutually exclusive with
the system preference "QueryAutoTruncate" and the * truncation
modifier, when not using QueryParser.

If you use truncation, relevance won't work anymore. (N.B. Relevance
doesn't work probably when using QueryParser, but for a very different
reason beyond the current scope of this bug.)

This patch adds relevance ranking when using truncation (or basically
when QueryWeightFields is disabled).

_TEST PLAN_

1) Turn on "QueryWeightFields" and "QueryAutoTruncate"
2) Turn off "TryQueryParser"
3) Do a keyword search in the OPAC
4) Note that the results are ordered by biblionumber ascending

5) Apply patch

6) Do the same keyword search in the OPAC
7) Note that the results are never ordered differently
(presumably in relevance order :P)

If you're a stickler, throw in some warns so that you can see
what CCL query is being sent to Zebra.

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


More information about the Koha-bugs mailing list