Bug 28899

Summary: Don't always make = into : for elastic range searching
Product: Koha Reporter: Andrew Fuerste-Henry <andrew>
Component: Searching - ElasticsearchAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P5 - low CC: dcook
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25051
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30745
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Andrew Fuerste-Henry 2021-08-25 20:26:14 UTC
For range searches, Elastic supports searches for ranges with one end bound, like "pubdate greater than or equal to 2020." Except the phrasing for that would be "pubdate:>=2020." And Koha wants to let us use either a colon or an equals sign after our index name, so it always converts an equals sign in to a colon, which means our query turns into "pubdate:>:2020" and we get an error.
Comment 1 David Cook 2024-05-23 06:25:16 UTC
Is this still valid? 

I'm passing acqdate:>2000-05-01 to Koha::SearchEngine::Search->new->simple_search_compat() in a workaround for bug 30745 and it's not mangling it.