[Bug 24155] New: Weights should be applied to Advanced search if no indexes have been selected
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 Bug ID: 24155 Summary: Weights should be applied to Advanced search if no indexes have been selected Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Searching - Elasticsearch Assignee: koha-bugs@lists.koha-community.org Reporter: nick@bywatersolutions.com When searching Keywords via the advanced search we should apply the weights to indexes. This would allow users to use the limits on the advanced search and still get more relevant results -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 AspenCat Team <aspencatteam@clicweb.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aspencatteam@clicweb.org --- Comment #1 from AspenCat Team <aspencatteam@clicweb.org> --- This would be very helpful for our libraries that are accustomed to using the advanced search. - Bob Bennhoff -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 Nick Clemens <nick@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 --- Comment #2 from Nick Clemens <nick@bywatersolutions.com> --- Created attachment 99650 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=99650&action=edit Bug 24155: Make wieghting an option on advanced search Currently we apply weighting to all searches except advanced search. The theory being that when selecting indexes we don't want to apply weights. When searching in ES weights are only applied to relevant results so it doesn't matter. i.e. if weighting author*100 but searching subject, a term matching the subject search in author is not boosted. Given this, we should always apply weights, unless the user wishes not to To test: 1 - Set some weighting 2 - Do some searches 3 - Note your terms and results, try advanced and regular searches specifying indexes or not 4 - Apply patch 5 - Note that opac and staff advanced search have option to apply weights 6 - Compare searches after the patch to see how weighting affects, it should be beneficial or not at all -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 Nick Clemens <nick@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |nick@bywatersolutions.com |ity.org | -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 Nick Clemens <nick@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |alex.arnaud@biblibre.com, | |ere.maijala@helsinki.fi, | |mkstephens@lancasterseminar | |y.edu Summary|Weights should be applied |Weights should be |to Advanced search if no |(optionally) applied to |indexes have been selected |Advanced search -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrew@bywatersolutions.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 Nick Clemens <nick@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #99650|0 |1 is obsolete| | --- Comment #3 from Nick Clemens <nick@bywatersolutions.com> --- Created attachment 99667 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=99667&action=edit Bug 24155: Make wieghting an option on advanced search Currently we apply weighting to all searches except advanced search. The theory being that when selecting indexes we don't want to apply weights. When searching in ES weights are only applied to relevant results so it doesn't matter. i.e. if weighting author*100 but searching subject, a term matching the subject search in author is not boosted. Given this, we should always apply weights, unless the user wishes not to To test: 1 - Set some weighting 2 - Do some searches 3 - Note your terms and results, try advanced and regular searches specifying indexes or not 4 - Apply patch 5 - Note that opac and staff advanced search have option to apply weights 6 - Compare searches after the patch to see how weighting affects, it should be beneficial or not at all -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 Myka Kennedy Stephens <mkstephens@lancasterseminary.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Patch doesn't apply --- Comment #4 from Myka Kennedy Stephens <mkstephens@lancasterseminary.edu> --- Patch failed to apply: Applying: Bug 24155: Make wieghting an option on advanced search Using index info to reconstruct a base tree... M cataloguing/addbooks.pl M koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc Falling back to patching base and 3-way merge... Auto-merging koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc Auto-merging cataloguing/addbooks.pl CONFLICT (content): Merge conflict in cataloguing/addbooks.pl error: Failed to merge in the changes. Patch failed at 0001 Bug 24155: Make wieghting an option on advanced search -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 --- Comment #5 from Myka Kennedy Stephens <mkstephens@lancasterseminary.edu> --- I would also like to add that as I was doing my base-line testing for this bug, I found something interesting. When clicking on a record in the result list, then clicking on the button to return to the results, the search re-executes and applies weights. If a user had performed a search using advanced search where weights are not applied, then used the button to return to the results list, they would find that the results were in a different order. The work-around is to just use the browser's back button to return to the advanced search results list. If we're giving people the option to apply weights to the advanced search, however, this inconsistency will continue to happen unless there's a way to specify the return to results link to go back to the previous results instead of launching a new search. I did notice that there is a search_id value in the URL when the search re-executes that is not there in the URL for the advanced search: http://localhost:8081/cgi-bin/koha/catalogue/search.pl?advsearch=1&idx=kw&q=computer&op=and&idx=kw&q=program*&op=and&idx=kw&sort_by=relevance vs. http://localhost:8081/cgi-bin/koha/catalogue/search.pl?idx=kw&q=computer&op=and&idx=kw&q=program*&op=and&idx=kw&searchid=scs_1583197470738&offset=0 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 Nick Clemens <nick@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Patch doesn't apply |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 Nick Clemens <nick@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #99667|0 |1 is obsolete| | --- Comment #6 from Nick Clemens <nick@bywatersolutions.com> --- Created attachment 100959 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=100959&action=edit Bug 24155: Make wieghting an option on advanced search Currently we apply weighting to all searches except advanced search. The theory being that when selecting indexes we don't want to apply weights. When searching in ES weights are only applied to relevant results so it doesn't matter. i.e. if weighting author*100 but searching subject, a term matching the subject search in author is not boosted. Given this, we should always apply weights, unless the user wishes not to To test: 1 - Set some weighting 2 - Do some searches 3 - Note your terms and results, try advanced and regular searches specifying indexes or not 4 - Apply patch 5 - Note that opac and staff advanced search have option to apply weights 6 - Compare searches after the patch to see how weighting affects, it should be beneficial or not at all -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 Myka Kennedy Stephens <mkstephens@lancasterseminary.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 Myka Kennedy Stephens <mkstephens@lancasterseminary.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #100959|0 |1 is obsolete| | --- Comment #7 from Myka Kennedy Stephens <mkstephens@lancasterseminary.edu> --- Created attachment 104441 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=104441&action=edit Bug 24155: Make wieghting an option on advanced search Currently we apply weighting to all searches except advanced search. The theory being that when selecting indexes we don't want to apply weights. When searching in ES weights are only applied to relevant results so it doesn't matter. i.e. if weighting author*100 but searching subject, a term matching the subject search in author is not boosted. Given this, we should always apply weights, unless the user wishes not to To test: 1 - Set some weighting 2 - Do some searches 3 - Note your terms and results, try advanced and regular searches specifying indexes or not 4 - Apply patch 5 - Note that opac and staff advanced search have option to apply weights 6 - Compare searches after the patch to see how weighting affects, it should be beneficial or not at all Signed-off-by: Myka Kennedy Stephens <mkstephens@lancasterseminary.edu> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 --- Comment #8 from Myka Kennedy Stephens <mkstephens@lancasterseminary.edu> --- Worked as expected. Searches with and without weights applied returned expected results. The behavior I was observing before applying a patch where looking at a result in detail and then returning to the results list to find the sorting had changed was also fixed. Now, if you choose not to apply weights, returning to the search results takes you back to the un-weighted results. Thank you! Nice work! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Failed QA --- Comment #9 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- With this patch, weights don't seem to be applied in a basic search. To recreate (in the default data for master): 1 - verify you're using ES and have no weights set 2 - do a basic search for "music" 3 - Note your top three results are "New Musical Express," "Miles Davis," and "All Music Guide to Soul" 4 - Enter 100 in weights for title index 5 - Reload your search 6 - Note your top three results are now "New Musical Express," "All Music Guide to Soul," and "Music Theory for Dummies." 7 - Apply patch 8 - Reload search and see you're back to your results ordering from step 3 9 - go to advanced search, perform a keyword search for "music" with "Apply field weightings to search" box checked 10 - Note these results match what's in step 6 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 Nick Clemens <nick@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 --- Comment #10 from Nick Clemens <nick@bywatersolutions.com> --- Created attachment 105033 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=105033&action=edit Bug 24155: Apply wieghts if not advanced search -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #104441|0 |1 is obsolete| | --- Comment #11 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 105038 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=105038&action=edit Bug 24155: Make wieghting an option on advanced search Currently we apply weighting to all searches except advanced search. The theory being that when selecting indexes we don't want to apply weights. When searching in ES weights are only applied to relevant results so it doesn't matter. i.e. if weighting author*100 but searching subject, a term matching the subject search in author is not boosted. Given this, we should always apply weights, unless the user wishes not to To test: 1 - Set some weighting 2 - Do some searches 3 - Note your terms and results, try advanced and regular searches specifying indexes or not 4 - Apply patch 5 - Note that opac and staff advanced search have option to apply weights 6 - Compare searches after the patch to see how weighting affects, it should be beneficial or not at all Signed-off-by: Myka Kennedy Stephens <mkstephens@lancasterseminary.edu> Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #105033|0 |1 is obsolete| | --- Comment #12 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 105039 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=105039&action=edit Bug 24155: Apply wieghts if not advanced search Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #105038|0 |1 is obsolete| | --- Comment #13 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 105041 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=105041&action=edit Bug 24155: Make wieghting an option on advanced search Currently we apply weighting to all searches except advanced search. The theory being that when selecting indexes we don't want to apply weights. When searching in ES weights are only applied to relevant results so it doesn't matter. i.e. if weighting author*100 but searching subject, a term matching the subject search in author is not boosted. Given this, we should always apply weights, unless the user wishes not to To test: 1 - Set some weighting 2 - Do some searches 3 - Note your terms and results, try advanced and regular searches specifying indexes or not 4 - Apply patch 5 - Note that opac and staff advanced search have option to apply weights 6 - Compare searches after the patch to see how weighting affects, it should be beneficial or not at all Signed-off-by: Myka Kennedy Stephens <mkstephens@lancasterseminary.edu> Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com> Signed-off-by: Bob Bennhoff <bbennhoff@clicweb.org> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #105039|0 |1 is obsolete| | --- Comment #14 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 105042 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=105042&action=edit Bug 24155: Apply wieghts if not advanced search Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com> Signed-off-by: Bob Bennhoff <bbennhoff@clicweb.org> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 --- Comment #15 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Some first thoughts here: I feel the GUI and maybe wording needs a little work. 1) the checkbox option appears kind of out of context on top of the form. I wonder if it would be better to place it closer to the search button - but that's problematic as we have 2 of those. I have no really good idea yet, but wanted to to get it out there. Attaching a screenshot. 2) The wording is currently: I wonder if "Apply field weightings to search" I wonder if this works for patrons or if there is a better/shorter description we could use. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 --- Comment #16 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Created attachment 109264 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109264&action=edit OPAC advanced search with weight search option -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 --- Comment #17 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- About 1) Staff interface: what about putting it into the floating toolbar? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 --- Comment #18 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Do you have some suggestions for a good weighting configuration to test with? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 --- Comment #19 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- When I try to add weights, I have: An error occurred when updating Elasticsearch index mappings: Unable to update mappings for index "koha_kohadev_biblios". Reason was: "Can't parse [index] value [] for field [copynumber__sort], expected [true] or [false]". Index needs to be recreated and reindexed. An error occurred when updating Elasticsearch index mappings: Unable to update mappings for index "koha_kohadev_authorities". Reason was: "Can't parse [index] value [] for field [personal-name-heading__sort], expected [true] or [false]". Index needs to be recreated and reindexed. Index '' needs to be recreated. Index '' needs to be recreated. I've tried resetting the mappings, but same errors. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dcook@prosentient.com.au -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 --- Comment #20 from Nick Clemens <nick@bywatersolutions.com> --- (In reply to Katrin Fischer from comment #18)
Do you have some suggestions for a good weighting configuration to test with?
Our standard for partners is: title: 32 author: 16 subject: 8 title-series: 4 contents: 2 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 --- Comment #21 from Nick Clemens <nick@bywatersolutions.com> --- (In reply to Katrin Fischer from comment #19)
When I try to add weights, I have:
An error occurred when updating Elasticsearch index mappings: Unable to update mappings for index "koha_kohadev_biblios". Reason was: "Can't parse [index] value [] for field [copynumber__sort], expected [true] or [false]". Index needs to be recreated and reindexed. An error occurred when updating Elasticsearch index mappings: Unable to update mappings for index "koha_kohadev_authorities". Reason was: "Can't parse [index] value [] for field [personal-name-heading__sort], expected [true] or [false]". Index needs to be recreated and reindexed. Index '' needs to be recreated. Index '' needs to be recreated.
I've tried resetting the mappings, but same errors.
I do not recreate, it sounds like your indexes aren't there, have you indexed in ES? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 --- Comment #22 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- (In reply to Nick Clemens from comment #21)
(In reply to Katrin Fischer from comment #19)
When I try to add weights, I have:
An error occurred when updating Elasticsearch index mappings: Unable to update mappings for index "koha_kohadev_biblios". Reason was: "Can't parse [index] value [] for field [copynumber__sort], expected [true] or [false]". Index needs to be recreated and reindexed. An error occurred when updating Elasticsearch index mappings: Unable to update mappings for index "koha_kohadev_authorities". Reason was: "Can't parse [index] value [] for field [personal-name-heading__sort], expected [true] or [false]". Index needs to be recreated and reindexed. Index '' needs to be recreated. Index '' needs to be recreated.
I've tried resetting the mappings, but same errors.
I do not recreate, it sounds like your indexes aren't there, have you indexed in ES?
Yes - search was working. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 --- Comment #23 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Ok, giving this another go: - Testing on kohadevbox - reset_all - nice and fresh database - kshell - Reindexing: ./misc/search_tools/rebuild_elasticsearch.pl -v -r - Preference SearchEngine set to Elasticsearch - Searching in staff - successful - Administration > Elasticsearch - Trying to set the suggested weight configuration, starting with: title: 32 On first tab, only entered the number and then hit Save. An error occurred when updating Elasticsearch index mappings: Unable to update mappings for index "koha_kohadev_biblios". Reason was: "Can't parse [index] value [] for field [date-of-publication__sort], expected [true] or [false]". Index needs to be recreated and reindexed. An error occurred when updating Elasticsearch index mappings: Unable to update mappings for index "koha_kohadev_authorities". Reason was: "Can't parse [index] value [] for field [match-heading-see-from__sort], expected [true] or [false]". Index needs to be recreated and reindexed. Index '' needs to be recreated. Index '' needs to be recreated. :( -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 --- Comment #24 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- I can't fail this as it's not related to the patch set, but I also can't continue testing. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 --- Comment #25 from Nick Clemens <nick@bywatersolutions.com> --- Created attachment 109360 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109360&action=edit Bug 24155: (follow-up) Add span with id to wieghted search option -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 --- Comment #26 from Owen Leonard <oleonard@myacpl.org> --- Created attachment 110405 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=110405&action=edit Bug 24155: (follow-up) Template fixes and updates This patch makes a few minor changes to the OPAC and staff interface templates: - In both, the "Apply field weights" checkbox will only appear after the "More options" button has been clicked. Otherwise a hidden input sets the value to 1. - In both, the checkbox now appears below the search fields. - Checkboxes are now wrapped in the <label> tag to ensure the label is clickable. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #105041|0 |1 is obsolete| | Attachment #105042|0 |1 is obsolete| | Attachment #109360|0 |1 is obsolete| | Attachment #110405|0 |1 is obsolete| | --- Comment #27 from Owen Leonard <oleonard@myacpl.org> --- Created attachment 110406 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=110406&action=edit Bug 24155: Make wieghting an option on advanced search Currently we apply weighting to all searches except advanced search. The theory being that when selecting indexes we don't want to apply weights. When searching in ES weights are only applied to relevant results so it doesn't matter. i.e. if weighting author*100 but searching subject, a term matching the subject search in author is not boosted. Given this, we should always apply weights, unless the user wishes not to To test: 1 - Set some weighting 2 - Do some searches 3 - Note your terms and results, try advanced and regular searches specifying indexes or not 4 - Apply patch 5 - Note that opac and staff advanced search have option to apply weights 6 - Compare searches after the patch to see how weighting affects, it should be beneficial or not at all Signed-off-by: Myka Kennedy Stephens <mkstephens@lancasterseminary.edu> Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com> Signed-off-by: Bob Bennhoff <bbennhoff@clicweb.org> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 --- Comment #28 from Owen Leonard <oleonard@myacpl.org> --- Created attachment 110407 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=110407&action=edit Bug 24155: Apply wieghts if not advanced search Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com> Signed-off-by: Bob Bennhoff <bbennhoff@clicweb.org> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 --- Comment #29 from Owen Leonard <oleonard@myacpl.org> --- Created attachment 110408 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=110408&action=edit Bug 24155: (follow-up) Add span with id to wieghted search option -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 --- Comment #30 from Owen Leonard <oleonard@myacpl.org> --- Created attachment 110409 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=110409&action=edit Bug 24155: (follow-up) Template fixes and updates This patch makes a few minor changes to the OPAC and staff interface templates: - In both, the "Apply field weights" checkbox will only appear after the "More options" button has been clicked. Otherwise a hidden input sets the value to 1. - In both, the checkbox now appears below the search fields. - Checkboxes are now wrapped in the <label> tag to ensure the label is clickable. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Patch complexity|--- |Small patch -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #110406|0 |1 is obsolete| | Attachment #110407|0 |1 is obsolete| | Attachment #110408|0 |1 is obsolete| | Attachment #110409|0 |1 is obsolete| | --- Comment #31 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Created attachment 110431 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=110431&action=edit Bug 24155: Make weighting an option on advanced search Currently we apply weighting to all searches except advanced search. The theory being that when selecting indexes we don't want to apply weights. When searching in ES weights are only applied to relevant results so it doesn't matter. i.e. if weighting author*100 but searching subject, a term matching the subject search in author is not boosted. Given this, we should always apply weights, unless the user wishes not to To test: 1 - Set some weighting 2 - Do some searches 3 - Note your terms and results, try advanced and regular searches specifying indexes or not 4 - Apply patch 5 - Note that opac and staff advanced search have option to apply weights 6 - Compare searches after the patch to see how weighting affects, it should be beneficial or not at all Signed-off-by: Myka Kennedy Stephens <mkstephens@lancasterseminary.edu> Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com> Signed-off-by: Bob Bennhoff <bbennhoff@clicweb.org> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 --- Comment #32 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Created attachment 110432 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=110432&action=edit Bug 24155: Apply weights if not advanced search Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com> Signed-off-by: Bob Bennhoff <bbennhoff@clicweb.org> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 --- Comment #33 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Created attachment 110433 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=110433&action=edit Bug 24155: (follow-up) Add span with id to weighted search option Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 --- Comment #34 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Created attachment 110434 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=110434&action=edit Bug 24155: (follow-up) Template fixes and updates This patch makes a few minor changes to the OPAC and staff interface templates: - In both, the "Apply field weights" checkbox will only appear after the "More options" button has been clicked. Otherwise a hidden input sets the value to 1. - In both, the checkbox now appears below the search fields. - Checkboxes are now wrapped in the <label> tag to ensure the label is clickable. Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Pushed to master Version(s)| |20.11.00 released in| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 --- Comment #35 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Pushed to master for 20.11, thanks to everybody involved! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jonathan.druart@bugs.koha-c | |ommunity.org --- Comment #36 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- We have a failure, can you have a look please? t/db_dependent/www/search_utf8.t .. 24/99 # Failed test 'Base is like "(?^u:opac-search.pl\?(idx=&)?q=%CE%91%CE%B8%CE%AE%CE%BD%CE%B1)"' # at t/db_dependent/www/search_utf8.t line 300. # got: "http://koha:8080/cgi-bin/koha/opac-search.pl?weigh"... # length: 93 # doesn't match '(?^u:opac-search.pl\?(idx=&)?q=%CE%91%CE%B8%CE%AE%CE%BD%CE%B1)' t/db_dependent/www/search_utf8.t .. 57/99 # Failed test 'Base is like "(?^u:opac-search.pl\?(idx=&)?q=Ram%C3%B2n)"' # at t/db_dependent/www/search_utf8.t line 300. # got: "http://koha:8080/cgi-bin/koha/opac-search.pl?weigh"... # length: 73 # doesn't match '(?^u:opac-search.pl\?(idx=&)?q=Ram%C3%B2n)' t/db_dependent/www/search_utf8.t .. 89/99 # Failed test 'Base is like "(?^u:opac-search.pl\?(idx=&)?q=%F0%A0%BB%BAtomasito%F0%A0%BB%BA)"' # at t/db_dependent/www/search_utf8.t line 300. # got: "http://koha:8080/cgi-bin/koha/opac-search.pl?weigh"... # length: 95 # doesn't match '(?^u:opac-search.pl\?(idx=&)?q=%F0%A0%BB%BAtomasito%F0%A0%BB%BA) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 --- Comment #37 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 111039 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111039&action=edit Bug 24155: Fix parameter order to fix search_utf8.t -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |release-notes-needed -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 Nick Clemens <nick@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Text to go in the| |This patch adds the release notes| |weighting of search results | |to searches made via the | |'Advanced search' | |interface. | | | |Weights, | |defined in Administration | |section, boost ranking of | |results when specified | |fields are matched in a | |search query. | | | |The weights | |will not affect | |index-specific queries, but | |are useful for keyword or | |queries with limits applied | |and so should be applied | |unless the user specifies | |not to. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|release-notes-needed | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 Lucas Gass <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lucas@bywatersolutions.com --- Comment #38 from Lucas Gass <lucas@bywatersolutions.com> --- enhancement will not be backported to 20.05.x -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24155 --- Comment #39 from Lucas Gass <lucas@bywatersolutions.com> --- enhancement will not be backported to 20.05.x -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org