Bug 12431 - Relevance does not work properly when using QueryParser
Summary: Relevance does not work properly when using QueryParser
Status: CLOSED WONTFIX
Alias: None
Product: Koha
Classification: Unclassified
Component: Searching (show other bugs)
Version: master
Hardware: All All
: P5 - low major (vote)
Assignee: Galen Charlton
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks: 12742
  Show dependency treegraph
 
Reported: 2014-06-17 07:28 UTC by David Cook
Modified: 2020-11-30 21:44 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Cook 2014-06-17 07:28:05 UTC
Currently, when using QueryParser, relevance will only work for keyword queries.

queryparser.yaml either needs to be updated to include more weighted relevance mappings, or QueryParser needs a mechanism to add relevance to queries beyond the limited support it currently has.

More information available here:
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12430
Comment 1 David Cook 2014-06-17 07:28:37 UTC
Try doing a "Title" search or a "Subject" search and you'll see that results are returned in ascending biblionumber order and not in order of relevance.
Comment 2 David Cook 2014-07-02 06:19:03 UTC
The following references should probably be either removed or have 2: 102 commented out.

This adds relevance to the entire query, which is probably not what we want to do, since adding relevance to a query containing date indexes/sub-queries causes unexpected results or no results for that date sub-query.

If we do a callnumber search, we might also get distorted results where records with lots of items with that callnumber undesirably rise to the top.

  relevance:
    bib1_mapping:
      biblioserver:
        2: 102
    enabled: 1
    label: Relevance
  relevance_dsc:
    bib1_mapping:
      biblioserver:
        2: 102
    enabled: 1
    label: Relevance_dsc
  relevance_asc:
    bib1_mapping:
      biblioserver:
        2: 102
Comment 3 Katrin Fischer 2020-02-24 20:47:39 UTC
We've voted to remove the QueryParser code (https://wiki.koha-community.org/wiki/Development_IRC_meeting_4_March_2020), so I am closing this WONTFIX.