https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38694
--- Comment #8 from Nick Clemens (kidclamp) <n...@bywatersolutions.com> --- The problem comes especially when other titles include the full title that is being searched for. This patch adds a second query sent to ES along with the user's original query. The queries are sent as a 'bool' compound search, such that the original query is a 'must' - so we will only return results that are in the initial query. The query the patches add is a 'should' query. This simply serves as an additional boost - so where the title field matches the terms entered exactly we will boost that result to the top. To test: 1 - Add a record with 245 $a novel 2 - Add a record with 245 $a A novel : $b about things / $c by me 3 - Search for: novel 4 - Search for: a novel 5 - Apply patch, restart all 6 - Repeat searches, note exact titles are boosted It's not going to affect relevancy outside of exact title matches, though I will follow up with another patch soon - I think we can apply the same logic to other indexes - i.e. if I am searching for 'title' or 'kw' index - then add 'title-cover' but if I am searching 'subject' then add an field match for 'subject' so that "Underwater basket weaving" would match an exact subject over a record with "Underwater sealife" "Basket fish" "Weaving fish" (I know, dumb example) As for the why of this: Example from a partner catalog, searching for 'To Die For' - expecting the David Baldacci book with exact title I get: A diet to die for Antiques to die for U2, Rattle and Hum (track titles contain the three words) Upstairs Downstairs ....many more results To Die For by David Baldacci I tried adding a boost of 128 (exponential above others) to title-cover - and that can get titles up to 4 or 5 in the results lists, but before 'The Help' we still get: How to help the earth Help for the haunted Help! I'm a prisoner You can also improve things by searching with quotes, or searching 'title-cover' directly, but none of this restores the ease of title searching that users experienced in Zebra. For libraries that switch this is really seen as a loss. The time I have spent explaining to libraries why this isn't a problem would be better spent adding the feature they want ;-) I am happy to make this optional, but I do think it is a necessary feature based on the amount of requests I have received. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug. _______________________________________________ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/