https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22295 Bug ID: 22295 Summary: Elasticsearch - Advanced search should group terms entered in a single input Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Searching - Elasticsearch Assignee: koha-bugs@lists.koha-community.org Reporter: nick@bywatersolutions.com Target Milestone: --- This seems to be a difference in how Zebra and ES operate In Zebra a search like: ti:cats dogs will search for records with both 'cats' and 'dogs' in the title In ES the same search is treated as ti:cats _all:dogs because spaces end an index To perform the same search as Zebra, ES expects: ti:(cats dogs) For searching from the simple search bar this seems to be an issue of learning syntax. When using the advanced search, however, I would expect that two terms entered into a single box would both apply to the selected dropdown To recreate: 1 - Find two records - in the first add the words kangaroo and bucket to the title - in the second add kangaroo to title and bucket to publisher name 2 - in the search box try: - ti:kangaroo bucket - both titles returned - ti:bucket kangaroo - only first is returned - ti:(kangaroo bucket) - only first is returned - ti:(bucket kangaroo) - only first is returned 3 - From advanced search set an input dropdown to 'title' - bucket kangaroo - returns only the first - kangaroo bucket - returns both - (bucket kangaroo) - returns only the first - (kangaroo bucket) - returns only the first The parens in 3 reflect the expected behaviour (i think) and should be added by default -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.