Summary: | Elasticsearch should use the authid (record id) rather than the 001 when returning auth search results | ||
---|---|---|---|
Product: | Koha | Reporter: | Nick Clemens (kidclamp) <nick> |
Component: | Searching - Elasticsearch | Assignee: | Nick Clemens (kidclamp) <nick> |
Status: | CLOSED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P5 - low | CC: | 1joynelson, andrew, jonathan.druart, m.de.rooy |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: |
20.05.00, 19.11.06
|
|
Circulation function: | |||
Attachments: |
Bug 25229: Return authid of record rather than 001
Bug 25229: Return authid of record rather than 001 Bug 25229: Unit test Bug 25229: Return authid of record rather than 001 Bug 25229: (follow-up) Move QueryBuilder test to Elasticsearch dir Bug 25229: Unit test Bug 25229: Return authid of record rather than 001 Bug 25229: (follow-up) Move QueryBuilder test to Elasticsearch dir |
Description
Nick Clemens (kidclamp)
2020-04-21 13:38:37 UTC
Created attachment 103376 [details] [review] Bug 25229: Return authid of record rather than 001 As far as I can tell, we do this for zebra in the background. Follow the recreation instructions and see that we index the authid as 001 even if the record is different, which is kinda crazy. We should at least be consistent. I have not included tests because we don't really yet have a way to fake ES for tests - we need bug 19821 as there are issues where records created for testing are indexed into ES if search engine config is set, but they don't get removed (for zebra they enter zebraqueue transactionally and are not committed) Everywhere this code is sued expects the correct authid afacit Created attachment 103738 [details] [review] Bug 25229: Return authid of record rather than 001 Signed-off-by: Frédéric Demians <f.demians@tamil.fr> Document _id field, in authorities ES index, is always authid Tests please? Created attachment 103759 [details] [review] Bug 25229: Unit test Created attachment 103760 [details] [review] Bug 25229: Return authid of record rather than 001 Signed-off-by: Frédéric Demians <f.demians@tamil.fr> Document _id field, in authorities ES index, is always authid Created attachment 103761 [details] [review] Bug 25229: (follow-up) Move QueryBuilder test to Elasticsearch dir Created attachment 103779 [details] [review] Bug 25229: Unit test Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Created attachment 103780 [details] [review] Bug 25229: Return authid of record rather than 001 Signed-off-by: Frédéric Demians <f.demians@tamil.fr> Document _id field, in authorities ES index, is always authid Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Created attachment 103781 [details] [review] Bug 25229: (follow-up) Move QueryBuilder test to Elasticsearch dir Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Nice work everyone! Pushed to master for 20.05 Backported to 19.11.x for 19.11.06 |