https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38749
--- Comment #10 from David Cook <[email protected]> --- (In reply to Katrin Fischer from comment #9) > (In reply to David Cook from comment #6) > > I'm thinking that maybe we just add a warning to the syspref > > "QueryAutoTruncate" saying that truncation doesn't work for phrase searches > > for either Zebra or Elasticsearch. > > > > (Of course, we should probably also remove the "X as phrase" advanced search > > options when using Elasticsearch since they don't actually do anything...) > > Are you saying phrase search doesn't work at all or only not working as > expected with QueryAutoTruncate? It's complicated haha. Zebra: If you use "phr" with * but don't use double-quotes, Koha mangles the query and separates the phrase into individual terms that are searched against the "phrase" register. Technically truncation does apply to the terms, but it's essentially broken the phrase search, so it's not really a phrase search anymore. If you use "phr" with * and use double quotes, Koha keeps it as a phrase search, but the truncation won't work. Elasticsearch: "phr" just gets erased from the query, so it's a useless adding it to a query in Koha. Elasticsearch can only use * with individual terms. If you use double quotes, which is ES's Query String Syntax for a phrase search, it will silently ignore the * and won't perform the truncation. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] 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/
