This was setup in zebra - it would be nice to preserve this functionality
Created attachment 95846 [details] [review] Bug 24128: Add alias for biblionumber search To test: 1 - In staff or OPAC using ES, search for "biblionumber:3" or any existing biblionumber 2 - No results 3 - Apply patch, restart all the things 4 - Search again 5 - You go to the biblionumber
Patch does not apply. What happened: 1 - searched for "biblionumber:19" (without double quotes) 2 - no results 3 - applied patch, restart_all, updatedatabase (just to be safe) 4 - search again 5 - 11 results: biblio numbers 19, 190, 191, 192, 193, 194, 195, 196, 197, 198, and 199
Hi Myka, This is due to the 'QueryAutoTruncate' system preference. This adds a wildcard to all searches if enabled. Under ES if this is not enabled then partial word searches don't work - i.e. rain <> raining, so in general we do enable this If you perform the search as a phrase you can workaround the truncation: biblionumber:"19"
Created attachment 95953 [details] [review] Bug 24128: Add alias for biblionumber search To test: 1 - In staff or OPAC using ES, search for "biblionumber:3" or any existing biblionumber 2 - No results 3 - Apply patch, restart all the things 4 - Search again 5 - You go to the biblionumber Signed-off-by: Bob Bennhoff <bbennhoff@clicweb.org>
Created attachment 96008 [details] [review] Bug 24128: Add alias for biblionumber search To test: 1 - In staff or OPAC using ES, search for "biblionumber:3" or any existing biblionumber 2 - No results 3 - Apply patch, restart all the things 4 - Search again 5 - You go to the biblionumber Signed-off-by: Bob Bennhoff <bbennhoff@clicweb.org> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Would be great to see this area covered by tests a bit more.
Nice work everyone! Pushed to master for 20.05
Pushed to 19.11.01
backported to 19.05.x for 19.05.06