[Bug 25378] New: Fix search on publication date in elasticsearch

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 25378] New: Fix search on publication date in elasticsearch

bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25378

            Bug ID: 25378
           Summary: Fix search on publication date in elasticsearch
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: ASSIGNED
          Severity: normal
          Priority: P5 - low
         Component: Searching - Elasticsearch
          Assignee: [hidden email]
          Reporter: [hidden email]

--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[hidden email]
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/
Reply | Threaded
Open this post in threaded view
|

[Bug 25378] Fix search on publication date in elasticsearch

bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25378

--- Comment #1 from Julian Maurice <[hidden email]> ---
Created attachment 104361
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=104361&action=edit
Bug 25378: Fix search on publication date in elasticsearch

Index 'date' fields as integer so that a query like

    copydate:[1900 TO *]

works correctly

Malformed values (values that are not integer) will be ignored by
elasticsearch

Test plan:
1. Create two biblios, one with a valid year in the copydate field, one
   with an invalid year. The copydate field depends on your configuration
   (by default it's 260$c for MARC21 and NORMARC)
   Valid value example: "2301"
   Invalid value example: "year 2301"
2. Run `misc/search_tools/rebuild_elasticsearch.pl -b -d`
3. Go to OPAC advanced search, and in the "Publication date range"
filter, type: "2301", you should get only one result (the "valid"
biblio)
4. Try the following searches:
    - "2301-2301"
    - "2300-2302"
    - "2300-"
   They should all return the valid biblio
5. Try "2302-". You should get no results
6. Do the same at staff interface

--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[hidden email]
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/
Reply | Threaded
Open this post in threaded view
|

[Bug 25378] Fix search on publication date in elasticsearch

bugzilla-daemon
In reply to this post by bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25378

Julian Maurice <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |Needs Signoff

--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[hidden email]
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/
Reply | Threaded
Open this post in threaded view
|

[Bug 25378] Fix search on publication date in elasticsearch

bugzilla-daemon
In reply to this post by bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25378

--- Comment #2 from Katrin Fischer <[hidden email]> ---
Hi Julian, not sure, but is this related to bug 24559?

--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[hidden email]
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/
Reply | Threaded
Open this post in threaded view
|

[Bug 25378] Fix search on publication date in elasticsearch

bugzilla-daemon
In reply to this post by bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25378

Julian Maurice <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Needs Signoff               |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #3 from Julian Maurice <[hidden email]> ---
(In reply to Katrin Fischer from comment #2)
> Hi Julian, not sure, but is this related to bug 24559?

Yes, totally. Bug 24599 looks like a better alternative.
Closing as duplicate, thanks Katrin.

*** This bug has been marked as a duplicate of bug 24559 ***

--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[hidden email]
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/
Reply | Threaded
Open this post in threaded view
|

[Bug 25378] Fix search on publication date in elasticsearch

bugzilla-daemon
In reply to this post by bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25378

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[hidden email]
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/