[Bug 19893] New: Alternative optimized indexing for Elasticsearch
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Bug ID: 19893 Summary: Alternative optimized indexing for Elasticsearch Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Searching - Elasticsearch Assignee: koha-bugs@lists.koha-community.org Reporter: glasklas@gmail.com At our library perhaps owning to a larger than average number of biblios a full re-index takes an unacceptable amount of time complete (> 24h). We also had an issue with indexing becoming increasingly slower when new mappings are added. After some profiling using NYTProf it became clear most of this overhead is in Catmandu::Store::ElasticSearch and Catmandu::MARC. After giving it some thought the simplest way to resolve this issue actually seemed to be to replace these libraries with Koha-specific code, since the functionality provided is actually not that hard to re-implement in a more efficient manner. Due to the complexity of Catmandu optimizing these libraries would most likely be more challenging (and some parts are not actually possible to optimize because of limitations owing to the architecture of Catmandu/Fix). Main benefits include: 1) Increased indexing performance (about twice as fast, six times as fast if comparing time spent in update_index()), due to more efficient json-conversion and fewer Elasticsearch requests. 2) With Catmandu indexing speed decreases as more mappings are added, with the alternative algorithm indexing is kept more or less constant no matter how many mappings you add. 3) Neglectable indexing start-up time. For example we have an issue with the book drop machine, each return taking a couple of seconds because of the catmandu start-up overhead. 4) More transparent code and less complexity compared with Catmandu. With this patch the largest bottleneck is instead Marc::Record::as_xml_record, to use marc21 as serialization format would probably be a lot faster but still chose marc-xml because of the binary format length limitation (which could be exceeded with many items). Still, I will probably try to look into faster marc-xml serialization options in the future to address this. I also attach profiling results with and without the patch applied. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #1 from David Gustafsson <glasklas@gmail.com> --- Created attachment 70199 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=70199&action=edit master -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #2 from David Gustafsson <glasklas@gmail.com> --- Created attachment 70200 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=70200&action=edit patched -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 David Gustafsson <glasklas@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- QA Contact| |glasklas@gmail.com -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #3 from David Gustafsson <glasklas@gmail.com> --- Created attachment 70201 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=70201&action=edit Bug 19893 - Alternative optimized indexing for Elasticsearch Add alternative optimized indexing for Elasticsearch How to test: 1) Time a full elasticsearch re-index by running the rebuild_elastic_search.pl with the -d flag: `koha-shell <instance_name> -c "time rebuild_elastic_search.pl -d"`. 2) Enable ExperimentalElasticSearchIndexing system preference (found under Global System preferences -> Administration -> Search Engine). 3) Time a full re-index again, it should be about twice at fast (for a couple of thousand biblios, with fewer biblios results may be more unpredictable). -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 David Gustafsson <glasklas@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #70201|0 |1 is obsolete| | --- Comment #4 from David Gustafsson <glasklas@gmail.com> --- Created attachment 70202 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=70202&action=edit Bug 19893 - Alternative optimized indexing for Elasticsearch Add alternative optimized indexing for Elasticsearch How to test: 1) Time a full elasticsearch re-index by running the rebuild_elastic_search.pl with the -d flag: `koha-shell <instance_name> -c "time rebuild_elastic_search.pl -d"`. 2) Enable ExperimentalElasticSearchIndexing system preference (found under Global System preferences -> Administration -> Search Engine). 3) Time a full re-index again, it should be about twice at fast (for a couple of thousand biblios, with fewer biblios results may be more unpredictable). Sponsored-by: Gothenburg University Library -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 David Gustafsson <glasklas@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 David Gustafsson <glasklas@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #70202|0 |1 is obsolete| | --- Comment #5 from David Gustafsson <glasklas@gmail.com> --- Created attachment 70230 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=70230&action=edit Bug 19893 - Alternative optimized indexing for Elasticsearch Add alternative optimized indexing for Elasticsearch How to test: 1) Time a full elasticsearch re-index by running the rebuild_elastic_search.pl with the -d flag: `koha-shell <instance_name> -c "time rebuild_elastic_search.pl -d"`. 2) Enable ExperimentalElasticSearchIndexing system preference (found under Global System preferences -> Administration -> Search Engine). 3) Time a full re-index again, it should be about twice at fast (for a couple of thousand biblios, with fewer biblios results may be more unpredictable). Sponsored-by: Gothenburg University Library -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #6 from David Gustafsson <glasklas@gmail.com> --- Fixed an instance of hard-coded Elasticsearch mapping document type in update_mappings(). -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 David Gustafsson <glasklas@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #70230|0 |1 is obsolete| | --- Comment #7 from David Gustafsson <glasklas@gmail.com> --- Created attachment 70325 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=70325&action=edit Bug 19893 - Alternative optimized indexing for Elasticsearch Add alternative optimized indexing for Elasticsearch How to test: 1) Time a full elasticsearch re-index by running the rebuild_elastic_search.pl with the -d flag: `koha-shell <instance_name> -c "time rebuild_elastic_search.pl -d"`. 2) Enable ExperimentalElasticSearchIndexing system preference (found under Global System preferences -> Administration -> Search Engine). 3) Time a full re-index again, it should be about twice at fast (for a couple of thousand biblios, with fewer biblios results may be more unpredictable). Sponsored-by: Gothenburg University Library -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #8 from David Gustafsson <glasklas@gmail.com> --- Fixed decoding of marc records returned from Elasticsearch (depending on setting) in some places where this was missing. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 David Gustafsson <glasklas@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Failed QA --- Comment #9 from David Gustafsson <glasklas@gmail.com> --- Just saw that a vim swap file was accidentally committed, marking as failed until I have fixed this (shortly). -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 David Gustafsson <glasklas@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Needs Signoff --- Comment #10 from David Gustafsson <glasklas@gmail.com> --- Wrong issue, sorry. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Nicolas Legrand <nicolas.legrand@bulac.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |In Discussion CC| |nicolas.legrand@bulac.fr --- Comment #11 from Nicolas Legrand <nicolas.legrand@bulac.fr> --- It breaks my authority indexing (Unimarc) : substr outside of string at /home/koha/perl5/lib/perl5/MARC/File/XML.pm line 563. Use of uninitialized value $enc in string eq at /home/koha/perl5/lib/perl5/MARC/File/XML.pm line 565. Use of uninitialized value $enc in string eq at /home/koha/perl5/lib/perl5/MARC/File/XML.pm line 565. Use of uninitialized value $enc in string eq at /home/koha/perl5/lib/perl5/MARC/File/XML.pm line 567. Use of uninitialized value $enc in concatenation (.) or string at /home/koha/perl5/lib/perl5/MARC/File/XML.pm line 570. Unsupported UNIMARC character encoding [] for XML output for unimarc; 100$a -> 20180313 frey50 at /home/koha/perl5/lib/perl5/MARC/File/XML.pm line 570. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #12 from David Gustafsson <glasklas@gmail.com> --- Ok, have not tried it for unimarc-records myself, but from the error messages it appears the perl MARC-library expects subfield 100a to contain encoding information, and that it's emtpy. Right now not really sure if this is a MARC:::File::XML issue, data issue, or a bug in the patch. It could perhaps be worked around if added option for which serialization format to use (binary marc in addition to marc-xml). Opted for marc-xml mainly because of the length-limitation, we have some records with too many items so will not fit into binary marc. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 David Gustafsson <glasklas@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #70325|0 |1 is obsolete| | --- Comment #13 from David Gustafsson <glasklas@gmail.com> --- Created attachment 73153 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=73153&action=edit Bug 19893 - Alternative optimized indexing for Elasticsearch Add alternative optimized indexing for Elasticsearch How to test: 1) Time a full elasticsearch re-index by running the rebuild_elastic_search.pl with the -d flag: `koha-shell <instance_name> -c "time rebuild_elastic_search.pl -d"`. 2) Enable ExperimentalElasticSearchIndexing system preference (found under Global System preferences -> Administration -> Search Engine). 3) Time a full re-index again, it should be about twice at fast (for a couple of thousand biblios, with fewer biblios results may be more unpredictable). Sponsored-by: Gothenburg University Library -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #14 from David Gustafsson <glasklas@gmail.com> --- Fixed an unrelated issue where rebuild-index crashed if index did not already exist, will now create index if not exists. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #15 from Nicolas Legrand <nicolas.legrand@bulac.fr> --- Authorities is still patchy with ES for Unimarc. Nevertheless 100$a is not an empty field in my test sample. The way it is filled follows most french university libraries common rules (sudoc : http://documentation.abes.fr/sudoc/formats/unmb/zones/100.htm) which for this part... are not compliant to the Unimarc standard... It has 24 characters where Unimarc says it should have 35... -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tomascohen@gmail.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Ere Maijala <ere.maijala@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ere.maijala@helsinki.fi -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Ere Maijala <ere.maijala@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |20244 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20244 [Bug 20244] Elasticsearch - Indexing improvements -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #16 from Ere Maijala <ere.maijala@helsinki.fi> --- I like this approach quite a bit. A couple of comments: 1.) Incomplete fields should be handled more gracefully. I'm getting a set of these warnings: substr outside of string at /home/ere/kohacommunity/Koha/SearchEngine/Elasticsearch.pm line 356. This is with the test records from https://github.com/joubu/koha-misc4dev/tree/master/data/sql/marc21/1611/afte... 2.) es_id is missing from the indexed records compared to the Catmandu indexing code. Is this intentional? 3.) I think this, when done, should just replace the Catmandu-based indexing code. Since the ES support itself is somewhat experimental, it would make sense to switch once and for all. 4.) Make sure to document the dependency on Search::Elasticsearch. Would it be possible to use the v6 module? It says it supports ES 5 too. I had to downgrade it on my system for the patch to work. 5.) Booleans should be indexed as true/false. I'm seeing deprecation notices for suppress and onloan (this is wrong in the old code too, but could as well be done correctly here). 6.) The Catmandu version seems to create way more __sort fields, but perhaps it's a bug in the Catmandu version? 7.) The patch doesn't apply cleanly, so there could be also something I screwed up while fixing it manually. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #17 from David Gustafsson <glasklas@gmail.com> --- Thanks
1.) Incomplete fields should be handled more gracefully...
I agree. Have ignored this since only results in a warning, but could probably be done in better way. Some mappings ranges in the mappings YAML are off by one (mostly the ff*-fields I think), this might aggravate the issue.
2.) es_id is missing from the indexed records compared to the Catmandu indexing code. Is this intentional?
I think this is something Catmandu adds, and I think I just left it out since doesn't seems to be needed for anything.
3.) I think this, when done, should just replace the Catmandu-based indexing code. Since the ES support itself is somewhat experimental, it would make sense to switch once and for all.
That would be wonderful. I would actually love to get rid of all Catmandu-dependencies altogether. Indexing is probably the heaviest part, the rest should be quite trivial to replace with Search::Elasticsearch (which Catamndu uses internally).
4.) Make sure to document the dependency on Search::Elasticsearch. Would it be possible to use the v6 module? It says it supports ES 5 too. I had to downgrade it on my system for the patch to work.
I did not document it since Catmandu depends on it, but it will need to be done if Catmandu is no longer a dependency. To use v6 you just have to change, client => "5_0::Direct" to client => "6_0::Direct". If I'm not mistaken, I think we are running ES 6 with the "5_0::Direct" line (and works, but probably not optimal). The reason I went for 5.0 was that was the version Koha was using at the time of the initial version of the patch (I think).
5.) Booleans should be indexed as true/false. I'm seeing deprecation notices for suppress and onloan (this is wrong in the old code too, but could as well be done correctly here).
I agree. This is a problem in Koha master as well I think (but there is a bugzilla issue that takes care of it). It would be easy to fix so will make sure to do so.
6.) The Catmandu version seems to create way more __sort fields, but perhaps it's a bug in the Catmandu version?
Yes, I think this is a bug in Koha master, but will look into to it.
7.) The patch doesn't apply cleanly, so there could be also something I screwed up while fixing it manually.
I think you got it right, most of the above I have run into myself, though a bit strange that you had to downgrade to 5.0 to get it to work? Can verify tomorrow that it really is 6.x we are running. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 David Gustafsson <glasklas@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |glasklas@gmail.com |ity.org | -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #18 from David Gustafsson <glasklas@gmail.com> --- About the version, I was wrong, seams we are running 5.4. I would assume it would be as easy to just change the version string to get it working with 6 (but not sure how 6 handles _all fields and other deprecated things used by Koha). We run a quite heavily patched version of Koha where those issues have been fixed. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #19 from Ere Maijala <ere.maijala@helsinki.fi> --- It's probably better to address the issues with ES 6 separately, so let's just concentrate on getting the indexing done right, right? :) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #20 from Ere Maijala <ere.maijala@helsinki.fi> --- Actually, now that 20073 is in master, the "include_in_all" issue with ES 6 should be resolved. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 David Gustafsson <glasklas@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #73153|0 |1 is obsolete| | --- Comment #21 from David Gustafsson <glasklas@gmail.com> --- Created attachment 75109 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=75109&action=edit Bug 19893 - Alternative optimized indexing for Elasticsearch Add alternative optimized indexing for Elasticsearch How to test: 1) Time a full elasticsearch re-index by running the rebuild_elastic_search.pl with the -d flag: `koha-shell <instance_name> -c "time rebuild_elastic_search.pl -d"`. 2) Enable ExperimentalElasticSearchIndexing system preference (found under Global System preferences -> Administration -> Search Engine). 3) Time a full re-index again, it should be about twice at fast (for a couple of thousand biblios, with fewer biblios results may be more unpredictable). Sponsored-by: Gothenburg University Library -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #22 from David Gustafsson <glasklas@gmail.com> --- Rebased against master, have not had time to address the other issues, but will do so as soon as I can. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 David Gustafsson <glasklas@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #75109|0 |1 is obsolete| | --- Comment #23 from David Gustafsson <glasklas@gmail.com> --- Created attachment 75271 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=75271&action=edit Bug 19893 - Alternative optimized indexing for Elasticsearch Add alternative optimized indexing for Elasticsearch How to test: 1) Time a full elasticsearch re-index by running the rebuild_elastic_search.pl with the -d flag: `koha-shell <instance_name> -c "time rebuild_elastic_search.pl -d"`. 2) Enable ExperimentalElasticSearchIndexing system preference (found under Global System preferences -> Administration -> Search Engine). 3) Time a full re-index again, it should be about twice at fast (for a couple of thousand biblios, with fewer biblios results may be more unpredictable). Sponsored-by: Gothenburg University Library -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #24 from David Gustafsson <glasklas@gmail.com> --- Fixed the offset issue (which I should have done sooner as was a very minor fix). Search::Elasticsearch had been added to Perl dependencies somewhere else and was included with the rebase. es_id not needed as far as I can tell. Fixed boolean deprication warning and introduced "value_callback" mapping option which can later be made more dynamic, for example let type implementations define callbacks instead of hard coded in get_marc_mapping_rules. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 David Gustafsson <glasklas@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|In Discussion |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 David Gustafsson <glasklas@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #75271|0 |1 is obsolete| | --- Comment #25 from David Gustafsson <glasklas@gmail.com> --- Created attachment 75272 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=75272&action=edit Bug 19893 - Alternative optimized indexing for Elasticsearch Add alternative optimized indexing for Elasticsearch How to test: 1) Time a full elasticsearch re-index by running the rebuild_elastic_search.pl with the -d flag: `koha-shell <instance_name> -c "time rebuild_elastic_search.pl -d"`. 2) Enable ExperimentalElasticSearchIndexing system preference (found under Global System preferences -> Administration -> Search Engine). 3) Time a full re-index again, it should be about twice at fast (for a couple of thousand biblios, with fewer biblios results may be more unpredictable). Sponsored-by: Gothenburg University Library -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #26 from David Gustafsson <glasklas@gmail.com> --- @Ere Maijala you where also correct about the default sort setting which is enabled for true or undefined (which I think is incorrect, but better to open a separate issue about that and this patch complying with current behavior). -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #27 from David Gustafsson <glasklas@gmail.com> --- (In reply to Nicolas Legrand from comment #11)
It breaks my authority indexing (Unimarc) :
substr outside of string at /home/koha/perl5/lib/perl5/MARC/File/XML.pm line 563. Use of uninitialized value $enc in string eq at /home/koha/perl5/lib/perl5/MARC/File/XML.pm line 565. Use of uninitialized value $enc in string eq at /home/koha/perl5/lib/perl5/MARC/File/XML.pm line 565. Use of uninitialized value $enc in string eq at /home/koha/perl5/lib/perl5/MARC/File/XML.pm line 567. Use of uninitialized value $enc in concatenation (.) or string at /home/koha/perl5/lib/perl5/MARC/File/XML.pm line 570. Unsupported UNIMARC character encoding [] for XML output for unimarc; 100$a -> 20180313 frey50 at /home/koha/perl5/lib/perl5/MARC/File/XML.pm line 570.
I had forgotten about this issue, I will try to look into it, it would be easier if I had some test data which produced this error. So if you have a marc file would be helpful to attach or mail it to glasklas@gmail.com. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Ere Maijala <ere.maijala@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |20768 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20768 [Bug 20768] Noisy test results when SearchEngine set to Elasticsearch -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Nick Clemens <nick@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nick@bywatersolutions.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #28 from Ere Maijala <ere.maijala@helsinki.fi> --- I tested with a sample set of Unimarc records but couldn't reproduce the problems. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Ere Maijala <ere.maijala@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #75272|0 |1 is obsolete| | --- Comment #29 from Ere Maijala <ere.maijala@helsinki.fi> --- Created attachment 75353 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=75353&action=edit Bug 19893 - Alternative optimized indexing for Elasticsearch Add alternative optimized indexing for Elasticsearch How to test: 1) Time a full elasticsearch re-index by running the rebuild_elastic_search.pl with the -d flag: `koha-shell <instance_name> -c "time rebuild_elastic_search.pl -d"`. 2) Enable ExperimentalElasticSearchIndexing system preference (found under Global System preferences -> Administration -> Search Engine). 3) Time a full re-index again, it should be about twice at fast (for a couple of thousand biblios, with fewer biblios results may be more unpredictable). Sponsored-by: Gothenburg University Library Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Ere Maijala <ere.maijala@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |In Discussion --- Comment #30 from Ere Maijala <ere.maijala@helsinki.fi> --- Tested once more with sandbox records from <http://git.koha-community.org/gitweb/?p=contrib/global.git;a=blob;f=sandbox/sql/sandbox2.sql.gz;h=67264ef3e49d23440ad0f02c38484fc313ea0615;hb=c8dd177e45a08a6fd0b7a88af2589913d0a4ca8f> as well as with some real MARC 21 records. Looking good to me now. I still believe this should be the only indexing method, so maybe another patch to remove the Catmandu indexing and handle the deps? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #31 from David Gustafsson <glasklas@gmail.com> --- Ok, nice! Are you referring to adding Search::Elasticsearch in PerlDependencies? It has already been added it seams, so don't need to handle that dependency. If it is deemed the best option I can refactor the patch to remove the preference and use this as the only indexing option, that would not take long. Would be nice with some more feedback regarding how to handle this. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #32 from Ere Maijala <ere.maijala@helsinki.fi> --- Yes, I didn't know it was already added. That's good then. I believe that at this point it doesn't make sense to keep two different indexing methods when it's obvious that the old one has performance issues in this use and the new one doesn't have any obvious downsides. Especially so since the Elasticsearch support hasn't been stable yet. I have some general indexing improvements that I'd be much happier to base on the new mechanism rather than the Catmandu one. That's just me, though, and I'm not sure how something like this is to be decided. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #33 from David Gustafsson <glasklas@gmail.com> --- Yes, you are probably right. Initially I provided it as a preference since was more uncertain if stable or not and did not want to cause regressions when the current indexing was working. But now I'm a lot more confident that at least all serious issues have been ironed out, and we have been running this in production with ~2 million biblios since the beginning of April. As you say as Elastic is not stable yet it's probably a good to replace indexing logic with this so that possible issues can be caught by more people (the possible unimarc issue for example). -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #34 from Nick Clemens <nick@bywatersolutions.com> --- Can you send something to the koha-dev mailing list and add this as a topic for the next Developers meeting David? In a situation like this we should check for differing opinions or see if there are concerns others might have, and then we can vote at the meeting to move ahead. I think this the way to go, one less dependency makes it easier to maintain -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #35 from David Gustafsson <glasklas@gmail.com> --- No problem, I can do that, what should that mail contain? In the first comment I described the main motivation behind the patch, should I write more about the technical details how the code works? Also, even with this patch Catmandu is still used for searching, but that part I think it will be easy to replace with Search::ElasticSearch client to be able to drop Catmandu-dependency completely. Since this patch in it's current state seams pretty stable, it would perhaps be better to do this in a separate issue later if this one gets merged. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #36 from Nick Clemens <nick@bywatersolutions.com> --- Indeed, lets leave other removal to a new bug and not disturb things here. The email should just highlight the proposed change, the performance boost, and future maintainability. You can point back to this bug for more details, just give an overview that lets other developers know the situation -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #37 from Nicolas Legrand <nicolas.legrand@bulac.fr> --- (In reply to David Gustafsson from comment #27) [...]
I had forgotten about this issue, I will try to look into it, it would be easier if I had some test data which produced this error. So if you have a marc file would be helpful to attach or mail it to glasklas@gmail.com.
Hey David, my colleague Séverine Queune retested it, it worked well this time and it took 30% less time than usual! We're not well verse on how it should work, but so far, having something that works and works faster seems pretty convenient :). Thanks! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #38 from David Gustafsson <glasklas@gmail.com> --- Ok, good! I wrote in the first post that indexing is twice as fast. The reason it was faster in my benchmark is that we have added more mappings and have about 40% more than the Koha defaults. Catmandu will get slower the more mappings but with the patch the time will stay pretty constant, so the performance difference will be more apparent the more mappings are added. I'm also a little bit dissatisfied with the slow serialization performance with marc-xml, so will probably add an option for using base64 encoded binary marc as serialization format instead. This will probably increase performance significantly as serialization now probably is the largest performance hog. I'm also working on fixing the tests and will probably be able to complete that today. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Mirko Tietgen <mirko@abunchofthings.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mirko@abunchofthings.net --- Comment #39 from Mirko Tietgen <mirko@abunchofthings.net> --- Could you please list the versions of catmandu modules you did the tests with? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Séverine Queune <severine.queune@bulac.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |severine.queune@bulac.fr -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 David Gustafsson <glasklas@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #75353|0 |1 is obsolete| | --- Comment #40 from David Gustafsson <glasklas@gmail.com> --- Created attachment 75428 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=75428&action=edit Bug 19893 - Alternative optimized indexing for Elasticsearch Add alternative optimized indexing for Elasticsearch How to test: 1) Time a full elasticsearch re-index by running the rebuild_elastic_search.pl with the -d flag: `koha-shell <instance_name> -c "time rebuild_elastic_search.pl -d"`. 2) Enable ExperimentalElasticSearchIndexing system preference (found under Global System preferences -> Administration -> Search Engine). 3) Time a full re-index again, it should be about twice at fast (for a couple of thousand biblios, with fewer biblios results may be more unpredictable). Sponsored-by: Gothenburg University Library -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #41 from David Gustafsson <glasklas@gmail.com> --- Tests are now rewritten, could be made more exhaustive but at least as good coverage as the ones replaced. @Mirko Tietgen Do you mean the version used when producing the benchmarks? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #42 from David Gustafsson <glasklas@gmail.com> --- Forget to mention that in the new version of the patch I removed the preference and the new indexing method instead replaces the old. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #43 from Mirko Tietgen <mirko@abunchofthings.net> --- (In reply to David Gustafsson from comment #41)
@Mirko Tietgen Do you mean the version used when producing the benchmarks?
Yes. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #44 from David Gustafsson <glasklas@gmail.com> --- Ok! I think these were the versions: libcatmandu-marc-perl 0.215-1 libcatmandu-perl 1.0304-2~kohadev1 libcatmandu-store-elasticsearch-perl 0.0507-1~kohadev1 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 David Gustafsson <glasklas@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #75428|0 |1 is obsolete| | --- Comment #45 from David Gustafsson <glasklas@gmail.com> --- Created attachment 75455 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=75455&action=edit Bug 19893 - Alternative optimized indexing for Elasticsearch Add alternative optimized indexing for Elasticsearch How to test: 1) Time a full elasticsearch re-index by running the rebuild_elastic_search.pl with the -d flag: `koha-shell <instance_name> -c "time rebuild_elastic_search.pl -d"`. 2) Enable ExperimentalElasticSearchIndexing system preference (found under Global System preferences -> Administration -> Search Engine). 3) Time a full re-index again, it should be about twice at fast (for a couple of thousand biblios, with fewer biblios results may be more unpredictable). Sponsored-by: Gothenburg University Library -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #46 from David Gustafsson <glasklas@gmail.com> --- Added preference to choose serialization format for records in index. Now providing also base64 encoded binary marc as a more performant but possibly less robust (will not support very large records) option. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #47 from Ere Maijala <ere.maijala@helsinki.fi> --- I'd leave the alternative serialization out for now and add a new bug about it. It might make sense to e.g. use the binary format as long as the record is small enough but switch to alternative format for large records. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #48 from David Gustafsson <glasklas@gmail.com> --- Ok! MARCXML is still the default format, so previous behaviour is maintained if preference is left as is. The performance difference was also as big as hoped on the whole, so the largest benefit might be smaller index. I could remove it though quite confident it does not introduces any new bugs. Also I accidentally removed you sign off, but since have changed some things since then perhaps best to sign off again in that case. What I should have done is add the new changes as new commits, but wanted a clean diff to make it easier to review as a single unit, but in this case new commits would probably have been better. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #49 from David Gustafsson <glasklas@gmail.com> --- Missed a word, should be: "The performance difference was also _not_ as big" -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 David Gustafsson <glasklas@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|In Discussion |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #50 from Ere Maijala <ere.maijala@helsinki.fi> --- I'll review as soon as possible. Regarding the format of the full record, there are some other options that might be worth considering: - Store as JSON making it possible to do advanced MARC queries - Don't store the full record but get it from the database. There are obvious downsides but also upsides to this. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #51 from Nick Clemens <nick@bywatersolutions.com> --- *** Bug 20768 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Ere Maijala <ere.maijala@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |20073 --- Comment #52 from Ere Maijala <ere.maijala@helsinki.fi> --- I hope we can get bug 20073 sorted swiftly since this depends on it. Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20073 [Bug 20073] Move Elasticsearch settings to configuration files -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #53 from Ere Maijala <ere.maijala@helsinki.fi> --- David, $serialization_format needs a default value in the code, I think (but see below). Otherwise, unless you go and save the ElasticsearchMARCSerializationFormat pref once, the search results show up empty and you'll get a lot of "uninitialized value" warnings from the following line: if ($serialization_format eq 'base64ISO2709') { I also believe that "$record->as_usmarc()" will carp and set the record length to 99999 if the record ends up being too long. If you made reading the index autodetect between ISO2709 and MARCXML, you could use MARCXML as the fallback format when ->as_usmarc() carps. So the ISO2709 format would be used whenever possible and MARCXML would only be used for large records. And you could get rid of the ElasticsearchMARCSerializationFormat pref. This would be my preferred method at the moment, since ISO2709 saves time and space but large records need to be supported. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Ere Maijala <ere.maijala@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Failed QA -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #54 from David Gustafsson <glasklas@gmail.com> --- Thanks for the review and good suggestions. I agree the hybrid method seems the best, could also save a marc_format so format does not have to be detected. I have also considered the two option you mentioned, storing the whole marc record as json or skip storing it all together. The later could possibly be an option (for those wanting to keep index size small), the former would be really and would like to see implemented so could be the subject for a future bug. The catamandu json serialization format is pretty useless for querying and analysis, but it probably not take that much work to write a marc to json direct conversion which allowed you to make queries like 100.a:"Tolkien, J. R. R.". I would also like to use Kibana for analysis and for that to be useful you would have t have the marc data available as structured json. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #55 from Mirko Tietgen <mirko@abunchofthings.net> --- (In reply to David Gustafsson from comment #44)
Ok! I think these were the versions:
libcatmandu-marc-perl 0.215-1 libcatmandu-perl 1.0304-2~kohadev1 libcatmandu-store-elasticsearch-perl 0.0507-1~kohadev1
The versions are rather old. So far nobody asked about newer versions or complained about their performance. The changelog for Catmandu lists performance improvements in later versions. I have packaged newer versions in a new 'experimental' repository. I hope it has all dependencies. deb http://debian.koha-community.org/koha experimental main I don't have time to run tests or try the patches at the moment, but maybe you could run your benchmarks with the newer versions to see if it makes a difference? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #56 from Mirko Tietgen <mirko@abunchofthings.net> --- (In reply to Nick Clemens from comment #34)
Can you send something to the koha-dev mailing list and add this as a topic for the next Developers meeting David?
In a situation like this we should check for differing opinions or see if there are concerns others might have, and then we can vote at the meeting to move ahead.
I think this the way to go, one less dependency makes it easier to maintain
I am not necessarily a fan of dropping dependencies. I think it is part of Perl to use other modules instead of reinventing everything. Regarding Catmandu, the developers are very dedicated and we will profit from future developments without investing Koha developer time, while a change to our own solution might help with performance now but might not be touched again for a long time. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #57 from David Gustafsson <glasklas@gmail.com> --- Created attachment 75588 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=75588&action=edit Bug 19893: Remove serialization format setting Default to base64 encoded binary MARC with MARCXML fallback if record exceeds maximum size -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 David Gustafsson <glasklas@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #58 from David Gustafsson <glasklas@gmail.com> --- (In reply to Mirko Tietgen from comment #56)
I am not necessarily a fan of dropping dependencies. I think it is part of Perl to use other modules instead of reinventing everything. Regarding Catmandu, the developers are very dedicated and we will profit from future developments without investing Koha developer time, while a change to our own solution might help with performance now but might not be touched again for a long time.
Ok, I had some issues upgrading the packages, so I included the latest versions in a custom lib directory instead using the "use lib" pragma. I these are the timings I got: Old versions (catmandu 1.0304, catmandu-marc 0.215, catmandu-store-elasticsearch 0.0507) real 2m2.277s user 1m8.052s sys 0m3.084s New versions: catmandu 1.09, catmandu-marc 0.09, catmandu-store-elasticsearch 0.0507) real 1m56.413s user 1m5.020s sys 0m2.848s Patch: real 0m44.444s user 0m21.784s sys 0m2.400s -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #59 from David Gustafsson <glasklas@gmail.com> --- And with what this is the latest versions: (catmandu 1.09, catmandu-marc 1.231, catmandu-store-elasticsearch 0.0507) real 1m59.575s user 1m6.496s sys 0m3.252s Also a correction catmandu-marc 0.09 in the previous reply should of course be 1.09. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #60 from David Gustafsson <glasklas@gmail.com> --- (In reply to Nicolas Legrand from comment #37)
(In reply to David Gustafsson from comment #27) [...]
I had forgotten about this issue, I will try to look into it, it would be easier if I had some test data which produced this error. So if you have a marc file would be helpful to attach or mail it to glasklas@gmail.com.
Hey David,
my colleague Séverine Queune retested it, it worked well this time and it took 30% less time than usual!
We're not well verse on how it should work, but so far, having something that works and works faster seems pretty convenient :). Thanks!
Are you sure it only took 30% less? The last timings point more in the direction of a 2.5x speedup. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #61 from David Gustafsson <glasklas@gmail.com> --- Forgot to mention that the timings where taking using about 5000 records and 277 maps. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #62 from Ere Maijala <ere.maijala@helsinki.fi> --- (In reply to David Gustafsson from comment #57)
Created attachment 75588 [details] [review] Bug 19893: Remove serialization format setting
Default to base64 encoded binary MARC with MARCXML fallback if record exceeds maximum size
Looks good to me now. Now if we can just get 20073 pushed again.. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #63 from David Gustafsson <glasklas@gmail.com> --- Created attachment 75658 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=75658&action=edit Bug 19893: Add index status Add persistent per index "index status" state to provide useful user feedback when update of Elasticsearch server mappings fails -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #64 from David Gustafsson <glasklas@gmail.com> --- We had an issue with our new Koha build (where some mappings had been changed) causing crashes when saving biblios etc since the previous version of this patch tried to update the server mappings when indexing new items. Now changed this to more robust and easier to debug handling of mapping synchronization by introducing persistent index status. I'm aware that abusing Context::preference for this purpose, if there are any suggestions regarding better persistent variable storage they are welcome. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 David Gustafsson <glasklas@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #75658|0 |1 is obsolete| | --- Comment #65 from David Gustafsson <glasklas@gmail.com> --- Created attachment 75660 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=75660&action=edit Bug 19893: Add index status Add persistent per index "index status" state to provide useful user feedback when update of Elasticsearch server mappings fails -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #66 from David Gustafsson <glasklas@gmail.com> --- Made small adjustment to provide better error messages. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |katrin.fischer@bsz-bw.de --- Comment #67 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Have we come to a conclusion here? What would be the next step? Should we add it to the agenda for next dev's meeting? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #68 from Ere Maijala <ere.maijala@helsinki.fi> --- Well, I'd try to get this in as soon as 20073 is in master (I'm just waiting for it and will sign off when done). But that's just me again. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |martin.renvoize@ptfs-europe | |.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Bug 19893 depends on bug 20073, which changed state. Bug 20073 Summary: Move Elasticsearch settings to configuration files https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20073 What |Removed |Added ---------------------------------------------------------------------------- Status|Pushed to Master |RESOLVED Resolution|--- |FIXED -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #69 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Bug 20073 is now in.. I like the look of this one and will devote a bit of time to help QA it if we get a signoff soon. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Ere Maijala <ere.maijala@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Ere Maijala <ere.maijala@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #75455|0 |1 is obsolete| | --- Comment #70 from Ere Maijala <ere.maijala@helsinki.fi> --- Created attachment 76612 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=76612&action=edit Bug 19893 - Alternative optimized indexing for Elasticsearch Implement optimized indexing for Elasticsearch How to test: 1) Time a full elasticsearch re-index without this patch by running the rebuild_elastic_search.pl with the -d flag: `koha-shell <instance_name> -c "time rebuild_elastic_search.pl -d"`. 2) Apply this patch. 3) Time a full re-index again, it should be about twice at fast (for a couple of thousand biblios, with fewer biblios results may be more unpredictable). Sponsored-by: Gothenburg University Library Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Ere Maijala <ere.maijala@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #75588|0 |1 is obsolete| | --- Comment #71 from Ere Maijala <ere.maijala@helsinki.fi> --- Created attachment 76613 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=76613&action=edit Bug 19893: Remove serialization format setting Default to base64 encoded binary MARC with MARCXML fallback if record exceeds maximum size Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Ere Maijala <ere.maijala@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #75660|0 |1 is obsolete| | --- Comment #72 from Ere Maijala <ere.maijala@helsinki.fi> --- Created attachment 76614 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=76614&action=edit Bug 19893: Add index status Add persistent per index "index status" state to provide useful user feedback when update of Elasticsearch server mappings fails Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #73 from Ere Maijala <ere.maijala@helsinki.fi> --- I took the liberty of adding "if (@body)" check in bulk_index so that e.g. an empty authority index can be created without errors. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #74 from David Gustafsson <glasklas@gmail.com> --- Ok, great! Thanks for the sign-off. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #75 from Ere Maijala <ere.maijala@helsinki.fi> --- Created attachment 76629 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=76629&action=edit Fix Elasticsearch tests. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #76 from Ere Maijala <ere.maijala@helsinki.fi> --- David, Martin: Please also check out some further fixes (built on top of the work done here) in bug 20244. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Ere Maijala <ere.maijala@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |19365 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19365 [Bug 19365] link_bibs_to_authorities.pl doesn't work with Elasticsearch -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #77 from Ere Maijala <ere.maijala@helsinki.fi> --- David, the current patch set doesn't apply cleanly. Could you rebase? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Ere Maijala <ere.maijala@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Patch doesn't apply -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Ere Maijala <ere.maijala@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Patch doesn't apply |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Ere Maijala <ere.maijala@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #76612|0 |1 is obsolete| | Attachment #76613|0 |1 is obsolete| | Attachment #76614|0 |1 is obsolete| | Attachment #76629|0 |1 is obsolete| | --- Comment #78 from Ere Maijala <ere.maijala@helsinki.fi> --- Created attachment 78091 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=78091&action=edit Bug 19893 - Alternative optimized indexing for Elasticsearch Implement optimized indexing for Elasticsearch How to test: 1) Time a full elasticsearch re-index without this patch by running the rebuild_elastic_search.pl with the -d flag: `koha-shell <instance_name> -c "time rebuild_elastic_search.pl -d"`. 2) Apply this patch. 3) Time a full re-index again, it should be about twice at fast (for a couple of thousand biblios, with fewer biblios results may be more unpredictable). Sponsored-by: Gothenburg University Library Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #79 from Ere Maijala <ere.maijala@helsinki.fi> --- Created attachment 78092 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=78092&action=edit Bug 19893: Remove serialization format setting Default to base64 encoded binary MARC with MARCXML fallback if record exceeds maximum size Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #80 from Ere Maijala <ere.maijala@helsinki.fi> --- Created attachment 78093 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=78093&action=edit Bug 19893: Add index status Add persistent per index "index status" state to provide useful user feedback when update of Elasticsearch server mappings fails Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #81 from Ere Maijala <ere.maijala@helsinki.fi> --- Created attachment 78094 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=78094&action=edit Fix Elasticsearch tests. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #82 from Ere Maijala <ere.maijala@helsinki.fi> --- It was easy enough to rebase so I did it already. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Alex Arnaud <alex.arnaud@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |alex.arnaud@biblibre.com --- Comment #83 from Alex Arnaud <alex.arnaud@biblibre.com> --- I try to check the difference between the data indexed in ES before and after this patch. First, concatenation seems to no longer work. I have the following mapping author => 700ba #($b = firstname, $a = lastname). With Catendu::* libraries, i can read this in ES database: "author" : [ "Hanna Johansen", "JohansenHanna", "MaquetYves-Marie", "BehndKathi" ], (There is sometime no space but it's an other problem) With Koha-specific code: "author" : [ "Hanna Johansen", "Johansen", "Hanna", "Maquet", "Yves-Marie", "Behnd", "Kathi" ], Also, there is some difference on the data structure: Catmendu::* : "author__suggestion" : [ { "input" : "Hanna Johansen" }, { "input" : "Johansen" }, { "input" : "Hanna" } ], Koha-specific: "author__suggestion" : { "input" : [ "Hanna Johansen", "JohansenHanna" ] }, Is this wanted ? What are the consequences? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Alex Arnaud <alex.arnaud@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- QA Contact|glasklas@gmail.com |alex.arnaud@biblibre.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Ere Maijala <ere.maijala@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |ASSIGNED --- Comment #84 from Ere Maijala <ere.maijala@helsinki.fi> --- I don't think that's wanted. It just slipped by. I have some improvements in bug 20244, but the relevant parts should probably be moved here. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #85 from David Gustafsson <glasklas@gmail.com> ---
From my understanding I looks like the Catmandu-version is wrong, since concaternation of subfields (if that it what is does) will screw up tokinization. I see that subfields are concatenated in bug 20244, but I don't understand the motivation behind this. What I can gather from the comments is: "The join option is needed in case there are fields without punctuation. Otherwise Catmandu will join the fields together without any space.". Is this something Catmandu does even with the patch? It looks good to me from the examples above.
Regarding the input I'm not 100% sure, but I think the second variant (Koha-specific) is preferable. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #86 from David Gustafsson <glasklas@gmail.com> --- And to clarify: I meant concatenation without any space in between will cause issues with tokenization, bug 20244 joins with space as separator so not an issue. I still don't understand why though :) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #87 from Ere Maijala <ere.maijala@helsinki.fi> --- Concatenation with space is pretty important to make phrase and proximity searches, sorting, ranking etc. work properly. It's not the same to have a field with ['first', 'second', 'third'] as ['first second third'] since by default in the first case the terms are considered to be a 100 items apart from each other. See e.g. https://www.elastic.co/guide/en/elasticsearch/reference/current/position-inc... for more information. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #88 from David Gustafsson <glasklas@gmail.com> --- Yes, I'm aware of that. The problem as I see it is that subfields don't have any defined order in which the information becomes meaningful as a sentence. So proximity matching could result in false positives in this case, if I'm not missing something. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #89 from Ere Maijala <ere.maijala@helsinki.fi> --- But they do. E.g. 245$a and $b form the full title. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Sally Healey <sally.healey@cheshiresharedservices.gov.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sally.healey@cheshireshared | |services.gov.uk -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #90 from David Gustafsson <glasklas@gmail.com> --- Yes, some subfields are like that, but in general the information in the different subfields cannot be automatically concatenated in a meaningful way. So my point is that is more chance than anything else that 245a and 245b can be joined. For other fields and subfields it will probably not be the case. I think that if one wants to do this it would better to invent some special form of mapping-syntax to be used in mappings.yaml where you could define that for example 245a and 245b (and other special cases) should be joined together for example. Something like this: - facet: '' marc_field: '245a+245b' marc_type: marc21 sort: ~ suggestible: '' But that would be a little bit challenging to implement with regards to how the mappings are currently processed. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #91 from Ere Maijala <ere.maijala@helsinki.fi> --- If the fields don't belong together, you can always define them alone as is currently done in many cases. It's just that you should also be able to say that you want 245ab as a whole. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #92 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- (In reply to Ere Maijala from comment #89)
But they do. E.g. 245$a and $b form the full title.
I'd add $n and $p :) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #93 from Ere Maijala <ere.maijala@helsinki.fi> --- (In reply to Katrin Fischer from comment #92)
(In reply to Ere Maijala from comment #89)
But they do. E.g. 245$a and $b form the full title.
I'd add $n and $p :)
Sure :) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #94 from Alex Arnaud <alex.arnaud@biblibre.com> --- Apologies: The: "author__suggestion" : { "input" : [ "Hanna Johansen", "JohansenHanna" ] }, is the Ctamendu one @David: Concatenation with space is important. In unimarc, authors are stored in 7xx tags where $a is the lastname and $b is the firstname. We want data being indexed like "First Last" or "Last First". And this is useful for facets. We definitely don't want a facet with the lastname and an other with the first. Bug 20389 is talking about that and suggests to use indexing plugin like we did with solr implementation in Koha. May be a solution -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #95 from David Gustafsson <glasklas@gmail.com> --- (In reply to Ere Maijala from comment #91)
If the fields don't belong together, you can always define them alone as is currently done in many cases. It's just that you should also be able to say that you want 245ab as a whole.
Sure, I can buy that. But that is not the way the mappings are currently defined in most places. For example Personal-name is mapped to "100abcdefghjklmnopqrstvxyz" and would have to be split up into one mapping for each subfield, like 100a, 100b, 100c, 100d etc, or all the information will be join into a string that does not make much sense. This will make search behavior harder to predict, potentially cause unexpected exact/proximity matches and thus more difficult to optimize. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #96 from David Gustafsson <glasklas@gmail.com> --- @Alex Arnaud I agree concaternation of subfields could be useful, but I ague that how this is done has to be defined in the mappings. If we concatenate all the subfields, many existing fields where concatenation is not desirable will be concaternated as a result. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #97 from David Gustafsson <glasklas@gmail.com> --- (In reply to David Gustafsson from comment #95)
(In reply to Ere Maijala from comment #91)
If the fields don't belong together, you can always define them alone as is currently done in many cases. It's just that you should also be able to say that you want 245ab as a whole.
Sure, I can buy that. But that is not the way the mappings are currently defined in most places. For example Personal-name is mapped to "100abcdefghjklmnopqrstvxyz" and would have to be split up into one mapping for each subfield, like 100a, 100b, 100c, 100d etc, or all the information will be join into a string that does not make much sense. This will make search behavior harder to predict, potentially cause unexpected exact/proximity matches and thus more difficult to optimize.
I just realized that splitting up the fields would not make any difference with the Koha-specific implementation, it makes no distinction if subfield mappings are defined together in one mapping or separately. I would guess that it would be much more efficient to introduce concaternation as an exception, with special syntax (as there appears to be only a few mappings that have use for it), and keep default behavior as it is. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #98 from Ere Maijala <ere.maijala@helsinki.fi> --- (In reply to David Gustafsson from comment #97)
I just realized that splitting up the fields would not make any difference with the Koha-specific implementation, it makes no distinction if subfield mappings are defined together in one mapping or separately. I would guess
True, but in my version in bug 20244 it does make a difference. What comes to the indexing of 100 etc. I can't see the problem with indexing the whole field as an entity. Since everything in it is in a single field, it's bound to be something belonging together. If, however, that turns out to be a problem, it would be way better to be able to define e.g. that 100abcde is one field and the rest is another. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #99 from Alex Arnaud <alex.arnaud@biblibre.com> --- (In reply to David Gustafsson from comment #96)
@Alex Arnaud I agree concaternation of subfields could be useful, but I ague that how this is done has to be defined in the mappings. If we concatenate all the subfields, many existing fields where concatenation is not desirable will be concaternated as a result.
I think the mapping system was designed for that. I.e author: 700ba # we get 700$a and 700$b concatenated And when concatenation is not wanted: author: 700b author: 700a # We get 700$a and 700$b in 2 different array elements -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #100 from David Gustafsson <glasklas@gmail.com> --- Created attachment 78524 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=78524&action=edit Bug 19893: Restore and fix removed tests -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #101 from David Gustafsson <glasklas@gmail.com> --- I think some tests got removed (don't know if by mistake or not), but restored them and adjusted for the new return values introduced with the patch. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #102 from David Gustafsson <glasklas@gmail.com> --- (In reply to Alex Arnaud from comment #99)
(In reply to David Gustafsson from comment #96)
@Alex Arnaud I agree concaternation of subfields could be useful, but I ague that how this is done has to be defined in the mappings. If we concatenate all the subfields, many existing fields where concatenation is not desirable will be concaternated as a result.
I think the mapping system was designed for that. I.e
author: 700ba # we get 700$a and 700$b concatenated
And when concatenation is not wanted:
author: 700b author: 700a # We get 700$a and 700$b in 2 different array elements
In that case there are MANY mappings that are defined in the wrong way. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #103 from Nicolas Legrand <nicolas.legrand@bulac.fr> --- (In reply to David Gustafsson from comment #102) [...]
I think the mapping system was designed for that. I.e
author: 700ba # we get 700$a and 700$b concatenated
And when concatenation is not wanted:
author: 700b author: 700a # We get 700$a and 700$b in 2 different array elements
In that case there are MANY mappings that are defined in the wrong way.
True, but we recently learned the hard way we need those kind of concatenation in the zone 7xx. We have cases of "authorfirstname authorlastname" that don't work and should. Rewriting mappings is not expansive compare to this. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #104 from Alex Arnaud <alex.arnaud@biblibre.com> --- (In reply to David Gustafsson from comment #102)
(In reply to Alex Arnaud from comment #99)
(In reply to David Gustafsson from comment #96)
@Alex Arnaud I agree concaternation of subfields could be useful, but I ague that how this is done has to be defined in the mappings. If we concatenate all the subfields, many existing fields where concatenation is not desirable will be concaternated as a result.
I think the mapping system was designed for that. I.e
author: 700ba # we get 700$a and 700$b concatenated
And when concatenation is not wanted:
author: 700b author: 700a # We get 700$a and 700$b in 2 different array elements
In that case there are MANY mappings that are defined in the wrong way.
Why? This is the behavior we had before. In my opinion, the point here is not to discuss how we should format data for elasticsearch but make indexing process faster. So, the first step is to have at least the same feature/data with koha-specific code we had with Catmendu libraries and, once we are done, check if we already have time saving. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #105 from Alex Arnaud <alex.arnaud@biblibre.com> --- (In reply to Nicolas Legrand from comment #103)
(In reply to David Gustafsson from comment #102) [...]
I think the mapping system was designed for that. I.e
author: 700ba # we get 700$a and 700$b concatenated
And when concatenation is not wanted:
author: 700b author: 700a # We get 700$a and 700$b in 2 different array elements
In that case there are MANY mappings that are defined in the wrong way.
True, but we recently learned the hard way we need those kind of concatenation in the zone 7xx. We have cases of "authorfirstname authorlastname" that don't work and should. Rewriting mappings is not expansive compare to this.
Hello Nicolas, Any exemples of what doesn't work ? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #106 from Ere Maijala <ere.maijala@helsinki.fi> ---
Why? This is the behavior we had before. In my opinion, the point here is not to discuss how we should format data for elasticsearch but make indexing process faster. So, the first step is to have at least the same feature/data with koha-specific code we had with Catmendu libraries and, once we are done, check if we already have time saving.
I don't think the two can be separate. If the indexing method doesn't allow something that's clearly needed, any optimization of the indexing code needs to take it into account. Alex's comment #83 also implies that concatenation did work with Catmandu, and even if it didn't, it would have been easy to tweak the rules to fix it. Your version of indexing would be faster than Catmandu even if subfields in a single field would be processed in rule order. But if all this becomes too complicated, I think it would be better to put any optimization on the back burner and work on the current code instead to fix its issues. E.g. I can easily resurrect the previous patch in bug 20244 for several improvements. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #107 from Séverine Queune <severine.queune@bulac.fr> --- (In reply to Alex Arnaud from comment #105)
(In reply to Nicolas Legrand from comment #103)
(In reply to David Gustafsson from comment #102) [...]
I think the mapping system was designed for that. I.e
author: 700ba # we get 700$a and 700$b concatenated
And when concatenation is not wanted:
author: 700b author: 700a # We get 700$a and 700$b in 2 different array elements
In that case there are MANY mappings that are defined in the wrong way.
True, but we recently learned the hard way we need those kind of concatenation in the zone 7xx. We have cases of "authorfirstname authorlastname" that don't work and should. Rewriting mappings is not expansive compare to this.
Hello Nicolas,
Any exemples of what doesn't work ?
Hi Alex, On Bulac catalog, you can search for "Ariane Eissen". You'll have 2 results, but we possess 3 books she wrote. In the third record, "Ariane" is preceded by "sous la direcetion d' " in 200$f so with the apostophe, the name of the author is considered as "d'Ariane". This is quite an obscur problem to us, because zone 7xxx is correctly indexed and authorities are present, so we could have found this third record using both "Ariane" and "d'Ariane". I just test with the form you mentionned on comment 94 and it works : I've got 3 results searching "eissenariane". Could that exemple help you ? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #108 from David Gustafsson <glasklas@gmail.com> --- (In reply to Ere Maijala from comment #106)
Why? This is the behavior we had before. In my opinion, the point here is not to discuss how we should format data for elasticsearch but make indexing process faster. So, the first step is to have at least the same feature/data with koha-specific code we had with Catmendu libraries and, once we are done, check if we already have time saving.
I don't think the two can be separate. If the indexing method doesn't allow something that's clearly needed, any optimization of the indexing code needs to take it into account. Alex's comment #83 also implies that concatenation did work with Catmandu, and even if it didn't, it would have been easy to tweak the rules to fix it.
Your version of indexing would be faster than Catmandu even if subfields in a single field would be processed in rule order. But if all this becomes too complicated, I think it would be better to put any optimization on the back burner and work on the current code instead to fix its issues. E.g. I can easily resurrect the previous patch in bug 20244 for several improvements.
At took a look at it and it seams to be quite easily fixed with the optimized indexing. I think you join all the subfields in your patch, but think can post a patch by tomorrow (or the next day) where only some (defined in mappings) subfields can be joins, without much increased complexity or impact on performance. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #109 from David Gustafsson <glasklas@gmail.com> --- And I would not say that concaternation currently works if the result is, "JohansenHanna", "MaquetYves-Marie" or "BehndKathi" for example (missing space). Probably easy to correct, but could be improved further with the optimized indexing as mentioned above. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #110 from Ere Maijala <ere.maijala@helsinki.fi> --- True, I actually had a fix for that in https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=74321. Awesome if you can work on it soon since ES stuff will have an important role in Kohacon hackfest this week. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #111 from David Gustafsson <glasklas@gmail.com> --- Created attachment 78561 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=78561&action=edit Bug 19893: Support for joined subfields in mappings -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #112 from David Gustafsson <glasklas@gmail.com> --- Subfields to be joined (with space) can be defined within parenthesis in "marc_field" like: facet: '' marc_field: 245(ab)cdef marc_type: marc21 sort: 1 suggestible: '1' An alternative, perhaps more flexible, way of defining them could instead be: facet: '' marc_field: 245cdef subfields_join: - subfields: ab separator: '' marc_type: marc21 sort: 1 suggestible: '1' Perhaps sometimes you don't want space as an separator, if the subfields are already formatted to be directly concatenated for example. Tests should also be added, and I can probably do that tomorrow. Also had an error involving missing normalizer "my_normalizer". Removed it from field_config.yaml and worked. Don't know if this is a bug and in that case if it has been reported. If wanting to try out this patch that line probably needs to be removed. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #113 from Ere Maijala <ere.maijala@helsinki.fi> --- Is there a real use case for not adding the space? Obviously it's not needed if it's there already, but that can be done automatically. I'm asking because conditional logic here gets a bit more complicated when you take optional subfields into consideration. What I mean is that the rule marc_field: 245(ab)cdef is clear when both a and b exist, but what if there's only acd? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #114 from David Gustafsson <glasklas@gmail.com> --- (In reply to Ere Maijala from comment #113)
Is there a real use case for not adding the space? Obviously it's not needed if it's there already, but that can be done automatically.
I'm asking because conditional logic here gets a bit more complicated when you take optional subfields into consideration. What I mean is that the rule
marc_field: 245(ab)cdef
is clear when both a and b exist, but what if there's only acd?
Perhaps not, but It would be a major thing to add so if people have use for it it could be added at low cost. If fields does not exist they will be skipped, so if there is only acd, (ac) will become a, and c and d added as separate values. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #115 from Nicolas Legrand <nicolas.legrand@bulac.fr> --- (In reply to Alex Arnaud from comment #105)
(In reply to Nicolas Legrand from comment #103)
(In reply to David Gustafsson from comment #102) [...]
I think the mapping system was designed for that. I.e
author: 700ba # we get 700$a and 700$b concatenated
And when concatenation is not wanted:
author: 700b author: 700a # We get 700$a and 700$b in 2 different array elements
In that case there are MANY mappings that are defined in the wrong way.
True, but we recently learned the hard way we need those kind of concatenation in the zone 7xx. We have cases of "authorfirstname authorlastname" that don't work and should. Rewriting mappings is not expansive compare to this.
Hello Nicolas,
Any exemples of what doesn't work ?
Hey Alex https://koha.bulac.fr/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=914403 Try to find this book while taping the name of the co-author "Ariane Eissen". Her name appears fully in the field 200, but the lexer don't separate words on apostrophes, so she's indexed as "d'Ariane Eissen". This leave us with the 702 to find her. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #116 from Ere Maijala <ere.maijala@helsinki.fi> --- The apostrophe is a separate issue and should be handled by modifying the analysis chain config in Elasticsearch. I haven't tested it yet, but ES has an elision token filter for just this purpose: https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-eli.... Anyway, I'd suggest we discuss and make any changes in a separate bug. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #117 from Nicolas Legrand <nicolas.legrand@bulac.fr> --- (In reply to Ere Maijala from comment #116)
The apostrophe is a separate issue and should be handled by modifying the analysis chain config in Elasticsearch. I haven't tested it yet, but ES has an elision token filter for just this purpose: https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis- elision-tokenfilter.html. Anyway, I'd suggest we discuss and make any changes in a separate bug.
Absolutely, I only talked about it to give some context. The important part for me is that the 7xx fields should be used to find an author while typing Name + Surname and that it doesn't yet. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 David Gustafsson <glasklas@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #78524|0 |1 is obsolete| | --- Comment #118 from David Gustafsson <glasklas@gmail.com> --- Created attachment 78587 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=78587&action=edit Bug 19893: Restore and fix removed tests -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 David Gustafsson <glasklas@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #78094|0 |1 is obsolete| | --- Comment #119 from David Gustafsson <glasklas@gmail.com> --- Created attachment 78588 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=78588&action=edit Bug 19893: Restore and fix removed tests -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 David Gustafsson <glasklas@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #78561|0 |1 is obsolete| | --- Comment #120 from David Gustafsson <glasklas@gmail.com> --- Created attachment 78589 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=78589&action=edit Bug 19893: Support for joined subfields in mappings -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 David Gustafsson <glasklas@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #78587|0 |1 is obsolete| | --- Comment #121 from David Gustafsson <glasklas@gmail.com> --- Created attachment 78590 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=78590&action=edit Bug 19893: Fix tests and add tests for joined subfields -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #122 from David Gustafsson <glasklas@gmail.com> --- Created attachment 78591 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=78591&action=edit Fix Elasticsearch tests. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 David Gustafsson <glasklas@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #78588|0 |1 is obsolete| | --- Comment #123 from David Gustafsson <glasklas@gmail.com> --- Created attachment 78592 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=78592&action=edit Bug 19893: Restore and fix removed tests -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 David Gustafsson <glasklas@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #78589|0 |1 is obsolete| | --- Comment #124 from David Gustafsson <glasklas@gmail.com> --- Created attachment 78593 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=78593&action=edit Bug 19893: Support for joined subfields in mappings -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 David Gustafsson <glasklas@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #78590|0 |1 is obsolete| | --- Comment #125 from David Gustafsson <glasklas@gmail.com> --- Created attachment 78594 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=78594&action=edit Bug 19893: Fix tests and add tests for joined subfields -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #126 from David Gustafsson <glasklas@gmail.com> --- Had some bugzilla issues, forgot to add the dots after HEAD~x, which resulted in mess that should now be fixed. Added patch to fix some broken tests and add tests for joining subfields. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #127 from Ere Maijala <ere.maijala@helsinki.fi> --- Maybe I'm missing something, but this is still not quite working as I was expecing. With "245ab" the subfields are still being split to multiple fields, and I have to use "245(ab)" to put them in a single field. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #128 from David Gustafsson <glasklas@gmail.com> --- Yes, that is the way it is meant to work. Since there are only a few cases where fields need to be joined it is better to make those the exception, and the default behavior to split into multiple values. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #129 from Ere Maijala <ere.maijala@helsinki.fi> --- So having two rules like this: 245a 245b Is now same as 245ab right? Since you can already list non-joined fields separately, is there any reason to actually need the parenthesis for joining? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #130 from Ere Maijala <ere.maijala@helsinki.fi> --- Oh, I see the light now. This is useful also for indexing all subfields without having to list all of them. Looks good to me then. We should just make sure to document how the rules work. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Ere Maijala <ere.maijala@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #78091|0 |1 is obsolete| | --- Comment #131 from Ere Maijala <ere.maijala@helsinki.fi> --- Created attachment 78690 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=78690&action=edit Bug 19893 - Alternative optimized indexing for Elasticsearch Implement optimized indexing for Elasticsearch How to test: 1) Time a full elasticsearch re-index without this patch by running the rebuild_elastic_search.pl with the -d flag: `koha-shell <instance_name> -c "time rebuild_elastic_search.pl -d"`. 2) Apply this patch. 3) Time a full re-index again, it should be about twice at fast (for a couple of thousand biblios, with fewer biblios results may be more unpredictable). Sponsored-by: Gothenburg University Library Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Ere Maijala <ere.maijala@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #78092|0 |1 is obsolete| | --- Comment #132 from Ere Maijala <ere.maijala@helsinki.fi> --- Created attachment 78691 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=78691&action=edit Bug 19893: Remove serialization format setting Default to base64 encoded binary MARC with MARCXML fallback if record exceeds maximum size Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Ere Maijala <ere.maijala@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #78093|0 |1 is obsolete| | --- Comment #133 from Ere Maijala <ere.maijala@helsinki.fi> --- Created attachment 78692 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=78692&action=edit Bug 19893: Add index status Add persistent per index "index status" state to provide useful user feedback when update of Elasticsearch server mappings fails Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #134 from Ere Maijala <ere.maijala@helsinki.fi> --- Created attachment 78693 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=78693&action=edit Bug 19893: Fix Elasticsearch tests. https://bugs.koha-community.org/show_bug.cgi?id=19893 Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Ere Maijala <ere.maijala@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #78592|0 |1 is obsolete| | --- Comment #135 from Ere Maijala <ere.maijala@helsinki.fi> --- Created attachment 78694 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=78694&action=edit Bug 19893: Restore and fix removed tests Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Ere Maijala <ere.maijala@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #78593|0 |1 is obsolete| | --- Comment #136 from Ere Maijala <ere.maijala@helsinki.fi> --- Created attachment 78695 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=78695&action=edit Bug 19893: Support for joined subfields in mappings Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Ere Maijala <ere.maijala@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #78594|0 |1 is obsolete| | --- Comment #137 from Ere Maijala <ere.maijala@helsinki.fi> --- Created attachment 78696 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=78696&action=edit Bug 19893: Fix tests and add tests for joined subfields Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Ere Maijala <ere.maijala@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #78591|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Ere Maijala <ere.maijala@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Ere Maijala <ere.maijala@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jonathan.druart@bugs.koha-c | |ommunity.org --- Comment #138 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Quick (naive?) questions: - Why do you loop on MARC fields instead of the mappings? - What are "joined fields", do we really to index everything? - Can you submit an example (record in input will output this document)? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #139 from Ere Maijala <ere.maijala@helsinki.fi> --- Answers as far as I can tell: (In reply to Jonathan Druart from comment #138)
Quick (naive?) questions: - Why do you loop on MARC fields instead of the mappings?
Going through MARC fields is slower than going through rules and when the number of rules increases, the difference is even more pronounced.
- What are "joined fields", do we really to index everything?
There are examples in the comments, but the simple case is 245 where you'd want to index subfields a, b, n and p as a complete string to enable proper sorting, ranking, proximity. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #140 from Ere Maijala <ere.maijala@helsinki.fi> --- Forgot to mention that joining is also important for faceting. There are some examples of what you get in t/Koha/SearchEngine/Elasticsearch.t. It obviously depends on the rules. But here's a short example of the 245 field. Input: 245 $aMain title / $bSubtitle Rule: title = 245(ab) Result: title: Main title / Subtitle Without joining: Input: 245 $aMain title / $bSubtitle Rule: title = 245ab Result: title: Main title title: Subtitle -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #141 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- (related to https://git.biblibre.com/biblibre/koha_biblibre/src/branch/dev/solr/C4/Searc...) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #142 from David Gustafsson <glasklas@gmail.com> --- (In reply to Ere Maijala from comment #130)
Oh, I see the light now. This is useful also for indexing all subfields without having to list all of them. Looks good to me then. We should just make sure to document how the rules work.
Yes, exactly. I was going to make this point but you made it for me :) Besides being cumbersome it would also make the mappings.yaml quite huge and difficult to read, and mappings slower to fetch from database. Also, the mappings are already defined in a way that you need to make minimal changes with this approach. If joing was the default it would have to be largely rewritten. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #143 from Ere Maijala <ere.maijala@helsinki.fi> --- I've now updated the patches for blocked bugs 19365 and 20244. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #144 from David Gustafsson <glasklas@gmail.com> --- (In reply to Jonathan Druart from comment #138)
Quick (naive?) questions: - Why do you loop on MARC fields instead of the mappings? - What are "joined fields", do we really to index everything? - Can you submit an example (record in input will output this document)?
About the first one. This is actually one of the tricks employed to make this much faster than catmandu. If you look at the "field" subroutine, it loops through all the fields on each call. So if we where to instead loop through the fields in mapping.yaml, and call fields for each one (like catmandu does), this is quite expensive to do. If we instead group all mappings by field stored in a hash, and loop through fields just once (by calling "field" instead) we get a huge performance gain since hash key lookup is constant time. If we add more mappings, only the parsing of mappings and creation of the rules hash will take longer, but that only has to be done once per batch so will have almost no impact on performance. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #145 from David Gustafsson <glasklas@gmail.com> --- Forgot to add link to Record.pm source, if you want to have a look at "sub fields" as referred to in the previous post: https://st.aticpan.org/source/GMCHARLT/MARC-Record-2.0.7/lib/MARC/Record.pm -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #146 from Alex Arnaud <alex.arnaud@biblibre.com> --- (In reply to David Gustafsson from comment #142)
(In reply to Ere Maijala from comment #130)
Oh, I see the light now. This is useful also for indexing all subfields without having to list all of them. Looks good to me then. We should just make sure to document how the rules work.
Yes, exactly. I was going to make this point but you made it for me :) Besides being cumbersome it would also make the mappings.yaml quite huge and difficult to read, and mappings slower to fetch from database. Also, the mappings are already defined in a way that you need to make minimal changes with this approach. If joing was the default it would have to be largely rewritten.
Indeed, this is useful for configuring mappings faster. I agree. syntax like 245(ab) seems good and "user friendly" to me. Agree too. But i'm wondering about updates. There's currently some libraries in production with Elasticseach. Will they need to change the rules themselves or will we provide an update script that will change the rules automatically ? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #147 from Ere Maijala <ere.maijala@helsinki.fi> --- I'd say no, since Elasticsearch support has so far been an experimental feature. Reindexing is required in any case. so the update won't be quite as seamless as in an optimal world. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #148 from David Gustafsson <glasklas@gmail.com> --- If bug 19707 was to be accepted into Koha, new mappings could also be added that way, even if automatic syncing comes with it's own problems (old mappings are not purged since can't differentiate between those and those added by end user). -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #149 from David Gustafsson <glasklas@gmail.com> --- I will also try to have a look whether the structure of auto-suggest "input"-fields is correct or not. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #150 from Alex Arnaud <alex.arnaud@biblibre.com> --- (In reply to David Gustafsson from comment #149)
I will also try to have a look whether the structure of auto-suggest "input"-fields is correct or not.
I don't know if it works or not, i don't how to test (is this used in Koha anywhere?), but the structure is still different from Catmandu results. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #151 from David Gustafsson <glasklas@gmail.com> --- Sorry about the delay. I have now checked regarding auto-completion. I'm pretty sure it is not used anywhere in Koha, even though mappings are created. It also does not matter if the "input" field for suggestion type is repeated or occurs once with multiple values, both work: https://www.elastic.co/guide/en/elasticsearch/reference/current/search-sugge... -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Alex Arnaud <alex.arnaud@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Failed QA --- Comment #152 from Alex Arnaud <alex.arnaud@biblibre.com> --- First QA things here: Pod is missing for this subs: get_elasticsearch marc_records_to_documents get_marc_mapping_rules bulk_index create_index index_exists update_mappings index_status index_status_ok index_status_recreate_required index_status_reindex_required You removed ElasticsearchMARCSerializationFormat syspref, previously created, but it is still used in Koha/SearchEngine/Elasticsearch.pm =================================== Questions: I'm wondering what the "index status" feature is for. index_status sub is always used with a parameter (to set it) but never without parameter. So it seems the status is never used, right? Also, status is stored in a systempreference and can only be set by the API (not by a librarian via UI). Can we actually say that this should be a systempreference? I still have concerns about update/migration. As you changed the way we write mapping, could you provide a connection between old and new mapping syntax ? This could be useful for creating migration script (thing i'll surely do for some libraries using ES in production). And it could be a good thing to provide a (at least short) documentation about how to write mapping since we use our own syntax instead of the already documented catmandu fix language. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #153 from Alex Arnaud <alex.arnaud@biblibre.com> --- Forget the point about status feature (except for the syspref). It's a bad reading from me. Another thing however: I'd like to have unit tests on the code that decides to set the marc_format. If possible with a normal record, a large record and a non valid record. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #154 from David Gustafsson <glasklas@gmail.com> --- Ok! No problem, will have a look at and fix these issues, it could take a week or so before I have the time though. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks|20768 | Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20768 [Bug 20768] Noisy test results when SearchEngine set to Elasticsearch -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |20768 --- Comment #155 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- I'm hoping to get back to QAing this soon.. have you had a chance to take a look at the feedback to date yet David? It would be great to get this moving again and try and push it before 18.11 feature slush. Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20768 [Bug 20768] Noisy test results when SearchEngine set to Elasticsearch -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks|20768 | Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20768 [Bug 20768] Noisy test results when SearchEngine set to Elasticsearch -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #156 from Ere Maijala <ere.maijala@helsinki.fi> --- I agree. David, please let me know if you need a hand with the final touches. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #157 from David Gustafsson <glasklas@gmail.com> --- Ok! I will prioritize this then and will try to get this done beginning of next week. Ere Maijala: Thanks for the offer! I think it will not take me to long, so if Monday/Tuesday is not too late I think I can manage. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #158 from David Gustafsson <glasklas@gmail.com> --- Created attachment 80969 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=80969&action=edit Bug 19893: Add pods, remove syspref, add tests for serialization format Add missing pods, remove obsolete syspref and add test for serialization format for records exceeding max record size -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 David Gustafsson <glasklas@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #80969|0 |1 is obsolete| | --- Comment #159 from David Gustafsson <glasklas@gmail.com> --- Created attachment 80970 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=80970&action=edit Bug 19893: Add pods, remove syspref, add tests for serialization format Add missing pods, remove obsolete syspref and add test for serialization format for records exceeding max record size -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 David Gustafsson <glasklas@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #80970|0 |1 is obsolete| | --- Comment #160 from David Gustafsson <glasklas@gmail.com> --- Created attachment 80971 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=80971&action=edit Bug 19893: Add pods, remove syspref, add tests for serialization format Add missing pods, remove obsolete syspref and add test for serialization format for records exceeding max record size -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 David Gustafsson <glasklas@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Signed Off --- Comment #161 from David Gustafsson <glasklas@gmail.com> --- Unsure whether to put in "Needs Signoff" or "Signed Off", set to "Signed off", but please correct this if wrong. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 David Gustafsson <glasklas@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Needs Signoff --- Comment #162 from David Gustafsson <glasklas@gmail.com> --- Or should perhaps be "Needs Signoff" since also did some minor refactoring. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Joonas Kylmälä <joonas.kylmala@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |joonas.kylmala@helsinki.fi --- Comment #163 from Joonas Kylmälä <joonas.kylmala@helsinki.fi> --- (In reply to David Gustafsson from comment #160)
Created attachment 80971 [details] [review] Bug 19893: Add pods, remove syspref, add tests for serialization format
Add missing pods, remove obsolete syspref and add test for serialization format for records exceeding max record size
Thanks for the patch! :) Couple comments (I have to go now, continuing review hopefully later): 1. There is typo databse and missing to. "Using mappings stored in databse convert" -> "Using mappings stored in database to convert" 2. It appears there are many different changes but they have been put to one commit. It would make it easier to review if the changes were in their own commits with their own commit messages. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #164 from David Gustafsson <glasklas@gmail.com> --- Created attachment 80983 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=80983&action=edit Bug 19893: Fixed some typos -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #165 from David Gustafsson <glasklas@gmail.com> --- Regarding the other changes, to make review easier, they where mainly: Rename marc_records_to_documents to _marc_records_to_documents to make "private". Split all the index_status_<status> methods into is_index_status_<status> (to check whether index has this status), and set_index_status_<status> (to set this status for index), since the previous method definition was not very intuitive (call without argument to get, call with "1" to set). -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #166 from Joonas Kylmälä <joonas.kylmala@helsinki.fi> --- (In reply to David Gustafsson from comment #164)
Created attachment 80983 [details] [review] Bug 19893: Fixed some typos
Please squash this to the previous patch as a new commit created by it is not necessary (https://wiki.koha-community.org/wiki/Development_IRC_meeting_27_September_20...) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #167 from Joonas Kylmälä <joonas.kylmala@helsinki.fi> --- (In reply to David Gustafsson from comment #165)
Regarding the other changes, to make review easier, they where mainly:
Rename marc_records_to_documents to _marc_records_to_documents to make "private".
Split all the index_status_<status> methods into is_index_status_<status> (to check whether index has this status), and set_index_status_<status> (to set this status for index), since the previous method definition was not very intuitive (call without argument to get, call with "1" to set).
Thanks for the description but the problem is I cannot connect these descriptions to the pieces of code easily. It would be really awesome if you could split the patch in to as many as required for the patches to do one thing. Tests should be at least ok to split to its own patch? However, I keep testing your patch in the current state and will update you if there is something. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #168 from Joonas Kylmälä <joonas.kylmala@helsinki.fi> --- Comment on attachment 80971 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=80971 Bug 19893: Add pods, remove syspref, add tests for serialization format Review of attachment 80971: --> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=19893&attachment=80971) ----------------------------------------------------------------- ::: Koha/SearchEngine/Elasticsearch/Indexer.pm @@ +307,4 @@
if ( !$self->store ) { my $params = $self->get_elasticsearch_params(); $self->store( + Catmandu::Store::Elasticsearch->new(
This line is changed and it somehow creates an unnoticable character that is different from the one being imported so deletion of biblio records doesn't work. This change of the line needs to be reverted. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 David Gustafsson <glasklas@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #80971|0 |1 is obsolete| | Attachment #80983|0 |1 is obsolete| | --- Comment #169 from David Gustafsson <glasklas@gmail.com> --- Created attachment 81014 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=81014&action=edit Bug 19893: Add pods, remove syspref, add tests for serialization format Add missing pods, remove obsolete syspref and add test for serialization format for records exceeding max record size -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 David Gustafsson <glasklas@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #81014|0 |1 is obsolete| | --- Comment #170 from David Gustafsson <glasklas@gmail.com> --- Created attachment 81015 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=81015&action=edit Bug 19893: Add pods, remove syspref, add tests for serialization format Add missing pods, remove obsolete syspref and add test for serialization format for records exceeding max record size -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #171 from David Gustafsson <glasklas@gmail.com> --- (In reply to Joonas Kylmälä from comment #168)
Comment on attachment 80971 [details] [review] Bug 19893: Add pods, remove syspref, add tests for serialization format
Review of attachment 80971 [details] [review]: -----------------------------------------------------------------
::: Koha/SearchEngine/Elasticsearch/Indexer.pm @@ +307,4 @@
if ( !$self->store ) { my $params = $self->get_elasticsearch_params(); $self->store( + Catmandu::Store::Elasticsearch->new(
This line is changed and it somehow creates an unnoticable character that is different from the one being imported so deletion of biblio records doesn't work. This change of the line needs to be reverted.
Good catch, that was because I replaced some occurences of "ElasticSearch" with "Elasticsearch" in comments (since that is how it is spelled), and accidently searched and replaced that one. Fixed and attached new patch. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #172 from Joonas Kylmälä <joonas.kylmala@helsinki.fi> --- Comment on attachment 78690 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=78690 Bug 19893 - Alternative optimized indexing for Elasticsearch Review of attachment 78690: --> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=19893&attachment=78690) ----------------------------------------------------------------- ::: Koha/SearchEngine/Elasticsearch.pm @@ +309,5 @@
+ my $serialization_format = C4::Context->preference('ElasticsearchMARCSerializationFormat'); + + my @record_documents; + + sub _process_mappings {
This sub could be moved out of the marc_records_to_documents sub so that it could be then also documented @@ +397,5 @@
my $marcflavour = lc C4::Context->preference('marcflavour'); my @rules;
+ sub _field_mappings {
Also I think this sub could benefit from documentation and not being inside get_marc_mapping_rules as there is plenty of other things going already in get_marc_mapping_rules so it would make it easier to follow the code. I tried to make a follow-up patch with documentation but it's going pretty slowly since I have to now gather the intel what each variable actually contains. $mappings: a tuple (the name of the field in elasticsearch index, "options" or rules to modify the field data) $record_document: document to put to Elasticsearch index ... -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #173 from David Gustafsson <glasklas@gmail.com> --- I agree It might benefit from documentation, it should (or even can) not be moved outside though, since I think there are some closures within. It is also a specific and private helper-method, thus belongs inside the method. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #174 from Joonas Kylmälä <joonas.kylmala@helsinki.fi> --- (In reply to David Gustafsson from comment #173)
I agree It might benefit from documentation, it should (or even can) not be moved outside though, since I think there are some closures within. It is also a specific and private helper-method, thus belongs inside the method.
I couldn't see any closures in the two subroutines I mentioned (and with "closure" I mean they don't refer to any variables in the outer subroutine). The search functionality and indexing seemed to work fine also when they are in the top level (I tested). Anyways, I put this topic on the Koha developer meeting list and maybe we will get a better consensus on how to do this. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #175 from Nick Clemens <nick@bywatersolutions.com> --- (In reply to Joonas Kylmälä from comment #174)
(In reply to David Gustafsson from comment #173)
I agree It might benefit from documentation, it should (or even can) not be moved outside though, since I think there are some closures within. It is also a specific and private helper-method, thus belongs inside the method.
I couldn't see any closures in the two subroutines I mentioned (and with "closure" I mean they don't refer to any variables in the outer subroutine). The search functionality and indexing seemed to work fine also when they are in the top level (I tested). Anyways, I put this topic on the Koha developer meeting list and maybe we will get a better consensus on how to do this.
The general consensus at the meeting was that seemed like ti could be a better function on its own and that the nesting was confusing in this case and didn't seem to be a traditional closure. The subroutine should be moved to the top level -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #176 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- (In reply to Nick Clemens from comment #175)
The subroutine should be moved to the top level
Or moved to Koha::FieldMappings. Tests must be provided in either case. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 e.betemps <e.betemps@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |e.betemps@gmail.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #177 from David Gustafsson <glasklas@gmail.com> --- I can have a look at this an move the subs out, I confused them with another case where closures where used, so no closures thus they work also outside. I don't really agree this is an improvement since the subs are not supposed to be used outside of the subroutines in which they are defined, but it's no big deal. Don't think Koha::FieldMappings is the right way to put them though sinceis an internal data structure used by _process_mappings, that has no purpose outside of that subroutine. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #178 from David Gustafsson <glasklas@gmail.com> --- There is also no meaningful way of testing them in isolation, tests cover them through the tests for "marc_records_to_document". -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #179 from Joonas Kylmälä <joonas.kylmala@helsinki.fi> --- (In reply to Jonathan Druart from comment #176)
Or moved to Koha::FieldMappings. Tests must be provided in either case.
Koha::FieldMappings is not really related to the MARC to Elasticsearch mappings that we are talking here, since Koha::FieldMappings doesn't have rules/mappings whether the field or combination of fields is a boolean, sortable, and so on. The Elasticsearch.pm module is already object oriented and the functions we are now talking about are just helper functions that don't necessarily need to be object oriented. So I'm all in for the current solution David is suggesting (but little refactoring is needed). -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 David Gustafsson <glasklas@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #81015|0 |1 is obsolete| | --- Comment #180 from David Gustafsson <glasklas@gmail.com> --- Created attachment 81284 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=81284&action=edit Bug 19893: Add pods, remove syspref, add tests for serialization format Add missing pods, remove obsolete syspref and add test for serialization format for records exceeding max record size -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #181 from Joonas Kylmälä <joonas.kylmala@helsinki.fi> --- Hi, could you still split the changes to their own commits? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #182 from David Gustafsson <glasklas@gmail.com> --- (In reply to Joonas Kylmälä from comment #181)
Hi,
could you still split the changes to their own commits?
I was considering your previous comment: (In reply to Joonas Kylmälä from comment #166)
(In reply to David Gustafsson from comment #164)
Created attachment 80983 [details] [review] [review] Bug 19893: Fixed some typos
Please squash this to the previous patch as a new commit created by it is not necessary (https://wiki.koha-community.org/wiki/ Development_IRC_meeting_27_September_2017)
which I interpreted as patch was supposed to be squashed in. As I no longer have the specific git commits in my local git repo I would have to rebuild them from the different iterations of patches in this issue and I would rather not do that due time constrains and risk of screwing things up. I also think there might be a benefit to review the patch as a whole since you don't have to account for errors made in previous commits that might have been corrected in a later one. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #183 from David Gustafsson <glasklas@gmail.com> --- What you could do is to to click "Show Obsolute" and download the two latest patches, then run "interdiff old_patch.patch new_patch.patch" and you will get the latest changes. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |21331 See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=21331 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21331 [Bug 21331] [Elasticsearch] Concatenated subfields are not indexed correctly -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #184 from Joonas Kylmälä <joonas.kylmala@helsinki.fi> --- If one big commit is fine for everybody else then I can pass it through this time. And if you come across the situation again where you have to change the commit or split them up you can do git reset --soft HEAD~1 and then just write new commit messages and in the end check with git diff whether the code is still identical to the situation before you started. I will do the actual code review hopefully by the end of this week. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #185 from Ere Maijala <ere.maijala@helsinki.fi> --- I'm okay with the big patch. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #186 from Joonas Kylmälä <joonas.kylmala@helsinki.fi> --- Comment on attachment 78690 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=78690 Bug 19893 - Alternative optimized indexing for Elasticsearch Review of attachment 78690: --> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=19893&attachment=78690) ----------------------------------------------------------------- ::: Koha/SearchEngine/Elasticsearch.pm @@ +34,5 @@
use Try::Tiny; use YAML::Syck;
+use List::Util qw( sum0 reduce ); +use Search::Elasticsearch;
use Search::Elasticsearch; is already defined above -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #187 from Joonas Kylmälä <joonas.kylmala@helsinki.fi> --- Comment on attachment 81284 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=81284 Bug 19893: Add pods, remove syspref, add tests for serialization format Review of attachment 81284: --> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=19893&attachment=81284) ----------------------------------------------------------------- ::: Koha/SearchEngine/Elasticsearch.pm @@ +329,5 @@
+The source data from a MARC record field. + +=item C<$record_document> + +Hashref representing the Elasticsearch document on which mappings should be applied.
extra space between "the Elasticsearch" -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #188 from Joonas Kylmälä <joonas.kylmala@helsinki.fi> --- Comment on attachment 78690 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=78690 Bug 19893 - Alternative optimized indexing for Elasticsearch Review of attachment 78690: --> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=19893&attachment=78690) ----------------------------------------------------------------- ::: Koha/SearchEngine/Elasticsearch.pm @@ +333,5 @@
+ } + push @{$record_document->{$target}}, $_data; + } + } + foreach my $record (@{$records}) {
Instead of stacking multiple for loops here, we can move this block to its own function, maybe called marc_record_to_document. This should make it easier to understand the code as the for loop would be then named and code doesn't go horizontally off the screen, right? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #189 from Joonas Kylmälä <joonas.kylmala@helsinki.fi> --- Comment on attachment 81284 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=81284 Bug 19893: Add pods, remove syspref, add tests for serialization format Review of attachment 81284: --> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=19893&attachment=81284) ----------------------------------------------------------------- ::: Koha/SearchEngine/Elasticsearch.pm @@ +484,5 @@
+Get mappings, an internal data structure later used by L<_process_mappings($mappings, $data, $record_document)> +to process MARC target data, for a MARC mapping. + +The returned C<$mappings> is to to be confused with mappings provided by C<_foreach_mapping>, rather this
Should be: The returned C<$mappings> is not to be confused with mappings provided by C<_foreach_mapping>, rather this (notice also the extra whitespace) @@ +515,5 @@
+Elasticsearch document target field type. + +=item C<$range> + +An optinal range as a string on the format "<START>-<END>" or "<START>",
Should be: An optional range as a string in the format "<START>-<END>" or "<START>", @@ +517,5 @@
+=item C<$range> + +An optinal range as a string on the format "<START>-<END>" or "<START>", +where "<START>" and "<END>" are integers specifying a range that will be used +for extracting a substing from MARC data as Elasticsearch field target value.
substing -> substring @@ +522,5 @@
+ +The first character position is "1", and the range is inclusive, +so "1-3" means the first three characters of MARC data. + +If only "<START>" is provided only one character as position "<START>" will
as position -> at position -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #190 from Joonas Kylmälä <joonas.kylmala@helsinki.fi> --- Comment on attachment 81284 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=81284 Bug 19893: Add pods, remove syspref, add tests for serialization format Review of attachment 81284: --> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=19893&attachment=81284) ----------------------------------------------------------------- ::: Koha/SearchEngine/Elasticsearch.pm @@ +310,5 @@
return $self->_sort_fields_accessor(); }
+=head2 _process_mappings($mappings, $data, $record_document) +
Missing example usage @@ +480,4 @@
return \@record_documents; }
+=head2 _field_mappings($facet, $suggestible, $sort, $target_name, $target_type, $range)
This POD is missing example usage: my @mappings = $self->_field_mappings($facet, $suggestible, $sort, $target_name, $target_type, $range) This will be somewhat useful to know what the function returns. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #191 from Joonas Kylmälä <joonas.kylmala@helsinki.fi> --- Comment on attachment 81284 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=81284 Bug 19893: Add pods, remove syspref, add tests for serialization format Review of attachment 81284: --> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=19893&attachment=81284) ----------------------------------------------------------------- ::: Koha/SearchEngine/Elasticsearch.pm @@ +592,5 @@
+rules keyed by MARC field tags holding all the mapping rules for that particular tag. + +We can then iterate through all MARC fields for each record and apply all relevant +rules once per fields instead of retreiving fields multiple times for each mapping rule +wich is terribly slow.
wich -> which @@ +605,5 @@
+sub _get_marc_mapping_rules { + my ($self) = @_; + + my $marcflavour = lc C4::Context->preference('marcflavour'); + my @rules;
There are now two definitions for rules variable. Let's remove this first one. @@ +699,4 @@
push @{$rules->{leader}}, @mappings; } else { + die("Invalid MARC field: $marc_field");
https://wiki.koha-community.org/wiki/Coding_Guidelines#Perl says "Instead of die or croak when meeting unfavorable conditions in our code, we should raise exceptions via Koha::Exceptions. " There is also "die("Unmatched opening parenthesis for $marc_field");" and maybe others that need to be fixed -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #192 from Joonas Kylmälä <joonas.kylmala@helsinki.fi> --- Comment on attachment 78690 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=78690 Bug 19893 - Alternative optimized indexing for Elasticsearch Review of attachment 78690: --> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=19893&attachment=78690) ----------------------------------------------------------------- ::: Koha/SearchEngine/Elasticsearch.pm @@ +464,5 @@
+ + if ($type eq 'sum') { + push @{$rules->{sum}}, $name; + } + elsif($type eq 'boolean') {
missing space after elsif ::: t/Koha/SearchEngine/Elasticsearch.t @@ +219,5 @@
+ ); + } + }); + + my $see = Koha::SearchEngine::Elasticsearch->new({ index => 'biblios' });
Should use $Koha::SearchEngine::BIBLIOS_INDEX -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #193 from Joonas Kylmälä <joonas.kylmala@helsinki.fi> --- Comment on attachment 78692 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=78692 Bug 19893: Add index status Review of attachment 78692: --> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=19893&attachment=78692) ----------------------------------------------------------------- ::: admin/searchengine/elasticsearch/mappings.pl @@ +47,4 @@
my $marc_type = lc C4::Context->preference('marcflavour');
+my @index_names = ('biblios', 'authorities');
Should use $Koha::SearchEngine::BIBLIOS_INDEX and $Koha::SearchEngine::AUTHORITIES_INDEX -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - low |P1 - high -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #194 from David Gustafsson <glasklas@gmail.com> --- Created attachment 81822 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=81822&action=edit Bug 19893: Add code review fixes -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #195 from David Gustafsson <glasklas@gmail.com> --- Ok, thanks for the feedback! I think I fixed most things except: (In reply to Joonas Kylmälä from comment #188)
Comment on attachment 78690 [details] [review] Bug 19893 - Alternative optimized indexing for Elasticsearch
Review of attachment 78690 [details] [review]: -----------------------------------------------------------------
::: Koha/SearchEngine/Elasticsearch.pm @@ +333,5 @@
+ } + push @{$record_document->{$target}}, $_data; + } + } + foreach my $record (@{$records}) {
Instead of stacking multiple for loops here, we can move this block to its own function, maybe called marc_record_to_document. This should make it easier to understand the code as the for loop would be then named and code doesn't go horizontally off the screen, right?
I don't get the line numbers to match up, but perhaps I'm using a different base. I don't recognize this code in my current branch. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #196 from David Gustafsson <glasklas@gmail.com> --- I also took the liberty to fix commit line length to 80 (perhaps not for all comments though), since some where a bit long. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #197 from Joonas Kylmälä <joonas.kylmala@helsinki.fi> --- Thanks for the patch! Instead of croak or die the exceptions need to be used, e.g. Koha::Exceptions::Exception->throw(""). Please do a git diff origin/master..HEAD to see all the dies and croaks (assuming HEAD contains your patches). And the many for loops I mentioned are in the subroutine marc_records_to_documents Koha/SearchEngine/Elasticsearch.pm – though take this as an optional thing to fix as I know this bug is blocking quite many other things. Continuing still code review... About installer/data/mysql/atomicupdate/bug_19893_elasticsearch_index_status_sysprefs.sql – a) is it a good idea to have these as a syspref (even though the user cannot see them)? b) if it's a good idea then the sysprefs should also be in installer/data/mysql/sysprefs.sql because otherwise in a new Koha installation the syspref will be missing. In the file Koha/SearchEngine/Elasticsearch.pm: s/string on the format/string in the format/ Then we also need a test plan for this code. Like what steps need to be taken to index authorities and biblios and what should be the expected result. Unit tests (https://wiki.koha-community.org/wiki/Coding_Guidelines#PERL17:_Unit_tests_ar...): at least decode_record_from_result is missing one If all the above mentioned things get fixed then I'm probably ready to sign-off but I still need to test this code actually before that. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #198 from Joonas Kylmälä <joonas.kylmala@helsinki.fi> --- (In reply to Joonas Kylmälä from comment #197)
Then we also need a test plan for this code. Like what steps need to be taken to index authorities and biblios and what should be the expected result.
There was one already in the first commit, so forget this. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #199 from Joonas Kylmälä <joonas.kylmala@helsinki.fi> --- The first patch's title "Bug 19893 - Alternative optimized indexing for Elasticsearch" should be Bug 19893: Alternative optimized indexing for Elasticsearch -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 David Gustafsson <glasklas@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #81822|0 |1 is obsolete| | --- Comment #200 from David Gustafsson <glasklas@gmail.com> --- Created attachment 81901 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=81901&action=edit Bug 19893: Add code review fixes -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #201 from David Gustafsson <glasklas@gmail.com> --- (In reply to Joonas Kylmälä from comment #197)
Thanks for the patch!
Instead of croak or die the exceptions need to be used, e.g. Koha::Exceptions::Exception->throw(""). Please do a git diff origin/master..HEAD to see all the dies and croaks (assuming HEAD contains your patches). And the many for loops I mentioned are in the subroutine marc_records_to_documents Koha/SearchEngine/Elasticsearch.pm – though take this as an optional thing to fix as I know this bug is blocking quite many other things.
Continuing still code review... About installer/data/mysql/atomicupdate/ bug_19893_elasticsearch_index_status_sysprefs.sql – a) is it a good idea to have these as a syspref (even though the user cannot see them)? b) if it's a good idea then the sysprefs should also be in installer/data/mysql/sysprefs.sql because otherwise in a new Koha installation the syspref will be missing.
In the file Koha/SearchEngine/Elasticsearch.pm: s/string on the format/string in the format/
Then we also need a test plan for this code. Like what steps need to be taken to index authorities and biblios and what should be the expected result.
Unit tests (https://wiki.koha-community.org/wiki/Coding_Guidelines#PERL17: _Unit_tests_are_required_.28updated_Apr_26.2C_2017.29): at least decode_record_from_result is missing one
If all the above mentioned things get fixed then I'm probably ready to sign-off but I still need to test this code actually before that.
I for some reason read it as "die" should be replaced with "croak". I have not replaced them with exceptions instead. I think it's a bit of an anti-pattern to put a block of code into a function if only invoked in one location, so would prefer to leave the code as it is. About the syspref, sadly there is no persistent variable store in Koha that I know of. In other places where this is needed (like Koha version number), it is stored in the syspref-table. Fixed the grammatical error. I don't know how much time I have to spend on unit tests. I think there is close to 100% code coverage trough the other tests, but I recently checked this with cover and there are some minor execution-paths that are never reached. Which I could fix. If I where to write unit tests for all new helper-methods added it could take some time. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #202 from David Gustafsson <glasklas@gmail.com> --- *"I have _now_ replaced them with exceptions instead." -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #203 from David Gustafsson <glasklas@gmail.com> --- Forgot to add it to sysprefs.sql though, will fix this. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 David Gustafsson <glasklas@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #81901|0 |1 is obsolete| | --- Comment #204 from David Gustafsson <glasklas@gmail.com> --- Created attachment 81903 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=81903&action=edit Bug 19893: Add code review fixes -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #205 from David Gustafsson <glasklas@gmail.com> --- But to clarify, I will increase test coverage and add test for "ecode_record_from_result" on monday, and we can take it from there. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #206 from David Gustafsson <glasklas@gmail.com> --- Created attachment 81955 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=81955&action=edit Bug 19893: Increase test coverage -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #207 from David Gustafsson <glasklas@gmail.com> --- Created new commit, if should be squashed I can do that if requested. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #208 from Joonas Kylmälä <joonas.kylmala@helsinki.fi> --- (In reply to David Gustafsson from comment #207)
Created new commit, if should be squashed I can do that if requested.
Seems separate enough from the rest of the non-signed-off-by commits to justify its own commit. Will you fix the title "Bug 19893 - Alternative optimized indexing for Elasticsearch" too so I can do the final testing and sign-off the patches if all goes well. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #209 from David Gustafsson <glasklas@gmail.com> --- Created attachment 81957 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=81957&action=edit Bug 19893: Alternative optimized indexing for Elasticsearch Implement optimized indexing for Elasticsearch How to test: 1) Time a full elasticsearch re-index without this patch by running the rebuild_elastic_search.pl with the -d flag: `koha-shell <instance_name> -c "time rebuild_elastic_search.pl -d"`. 2) Apply this patch. 3) Time a full re-index again, it should be about twice at fast (for a couple of thousand biblios, with fewer biblios results may be more unpredictable). Sponsored-by: Gothenburg University Library Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 David Gustafsson <glasklas@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #78691|0 |1 is obsolete| | --- Comment #210 from David Gustafsson <glasklas@gmail.com> --- Created attachment 81958 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=81958&action=edit Bug 19893: Remove serialization format setting Default to base64 encoded binary MARC with MARCXML fallback if record exceeds maximum size Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 David Gustafsson <glasklas@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #78692|0 |1 is obsolete| | --- Comment #211 from David Gustafsson <glasklas@gmail.com> --- Created attachment 81959 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=81959&action=edit Bug 19893: Add index status Add persistent per index "index status" state to provide useful user feedback when update of Elasticsearch server mappings fails Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 David Gustafsson <glasklas@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #78693|0 |1 is obsolete| | --- Comment #212 from David Gustafsson <glasklas@gmail.com> --- Created attachment 81960 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=81960&action=edit Bug 19893: Fix Elasticsearch tests. https://bugs.koha-community.org/show_bug.cgi?id=19893 Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 David Gustafsson <glasklas@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #78694|0 |1 is obsolete| | --- Comment #213 from David Gustafsson <glasklas@gmail.com> --- Created attachment 81961 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=81961&action=edit Bug 19893: Restore and fix removed tests Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 David Gustafsson <glasklas@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #78695|0 |1 is obsolete| | --- Comment #214 from David Gustafsson <glasklas@gmail.com> --- Created attachment 81962 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=81962&action=edit Bug 19893: Support for joined subfields in mappings Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 David Gustafsson <glasklas@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #78696|0 |1 is obsolete| | --- Comment #215 from David Gustafsson <glasklas@gmail.com> --- Created attachment 81963 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=81963&action=edit Bug 19893: Fix tests and add tests for joined subfields Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 David Gustafsson <glasklas@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #81284|0 |1 is obsolete| | --- Comment #216 from David Gustafsson <glasklas@gmail.com> --- Created attachment 81964 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=81964&action=edit Bug 19893: Add pods, remove syspref, add tests for serialization format Add missing pods, remove obsolete syspref and add test for serialization format for records exceeding max record size -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 David Gustafsson <glasklas@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #81903|0 |1 is obsolete| | --- Comment #217 from David Gustafsson <glasklas@gmail.com> --- Created attachment 81965 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=81965&action=edit Bug 19893: Add code review fixes -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 David Gustafsson <glasklas@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #81955|0 |1 is obsolete| | --- Comment #218 from David Gustafsson <glasklas@gmail.com> --- Created attachment 81966 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=81966&action=edit Bug 19893: Increase test coverage -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 David Gustafsson <glasklas@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #78690|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dcook@prosentient.com.au -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Ere Maijala <ere.maijala@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Ere Maijala <ere.maijala@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #81957|0 |1 is obsolete| | --- Comment #219 from Ere Maijala <ere.maijala@helsinki.fi> --- Created attachment 82143 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=82143&action=edit Bug 19893: Alternative optimized indexing for Elasticsearch Implement optimized indexing for Elasticsearch How to test: 1) Time a full elasticsearch re-index without this patch by running the rebuild_elastic_search.pl with the -d flag: `koha-shell <instance_name> -c "time rebuild_elastic_search.pl -d"`. 2) Apply this patch. 3) Time a full re-index again, it should be about twice at fast (for a couple of thousand biblios, with fewer biblios results may be more unpredictable). Sponsored-by: Gothenburg University Library Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Ere Maijala <ere.maijala@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #81958|0 |1 is obsolete| | --- Comment #220 from Ere Maijala <ere.maijala@helsinki.fi> --- Created attachment 82144 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=82144&action=edit Bug 19893: Remove serialization format setting Default to base64 encoded binary MARC with MARCXML fallback if record exceeds maximum size Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Ere Maijala <ere.maijala@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #81959|0 |1 is obsolete| | --- Comment #221 from Ere Maijala <ere.maijala@helsinki.fi> --- Created attachment 82145 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=82145&action=edit Bug 19893: Add index status Add persistent per index "index status" state to provide useful user feedback when update of Elasticsearch server mappings fails Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Ere Maijala <ere.maijala@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #81960|0 |1 is obsolete| | --- Comment #222 from Ere Maijala <ere.maijala@helsinki.fi> --- Created attachment 82146 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=82146&action=edit Bug 19893: Fix Elasticsearch tests. https://bugs.koha-community.org/show_bug.cgi?id=19893 Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Ere Maijala <ere.maijala@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #81961|0 |1 is obsolete| | --- Comment #223 from Ere Maijala <ere.maijala@helsinki.fi> --- Created attachment 82147 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=82147&action=edit Bug 19893: Restore and fix removed tests Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Ere Maijala <ere.maijala@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #81962|0 |1 is obsolete| | --- Comment #224 from Ere Maijala <ere.maijala@helsinki.fi> --- Created attachment 82148 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=82148&action=edit Bug 19893: Support for joined subfields in mappings Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Ere Maijala <ere.maijala@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #81963|0 |1 is obsolete| | --- Comment #225 from Ere Maijala <ere.maijala@helsinki.fi> --- Created attachment 82149 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=82149&action=edit Bug 19893: Fix tests and add tests for joined subfields Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Ere Maijala <ere.maijala@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #81964|0 |1 is obsolete| | --- Comment #226 from Ere Maijala <ere.maijala@helsinki.fi> --- Created attachment 82150 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=82150&action=edit Bug 19893: Add pods, remove syspref, add tests for serialization format Add missing pods, remove obsolete syspref and add test for serialization format for records exceeding max record size Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Ere Maijala <ere.maijala@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #81965|0 |1 is obsolete| | --- Comment #227 from Ere Maijala <ere.maijala@helsinki.fi> --- Created attachment 82151 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=82151&action=edit Bug 19893: Add code review fixes Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Ere Maijala <ere.maijala@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #81966|0 |1 is obsolete| | --- Comment #228 from Ere Maijala <ere.maijala@helsinki.fi> --- Created attachment 82152 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=82152&action=edit Bug 19893: Increase test coverage Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #229 from Ere Maijala <ere.maijala@helsinki.fi> --- Thanks for your hard work David and Joonas! I've gone through the changes and tested once more, and I believe we're ready for QA. I did a very minor rebase caused by bug 18316 to mappings.tt where just another message had been added. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #230 from David Gustafsson <glasklas@gmail.com> --- Great! Thanks for the help with rebasing. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #82143|0 |1 is obsolete| | --- Comment #231 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 82256 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=82256&action=edit Bug 19893: Alternative optimized indexing for Elasticsearch Implement optimized indexing for Elasticsearch How to test: 1) Time a full elasticsearch re-index without this patch by running the rebuild_elastic_search.pl with the -d flag: `koha-shell <instance_name> -c "time rebuild_elastic_search.pl -d"`. 2) Apply this patch. 3) Time a full re-index again, it should be about twice at fast (for a couple of thousand biblios, with fewer biblios results may be more unpredictable). Sponsored-by: Gothenburg University Library Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #82144|0 |1 is obsolete| | --- Comment #232 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 82257 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=82257&action=edit Bug 19893: Remove serialization format setting Default to base64 encoded binary MARC with MARCXML fallback if record exceeds maximum size Sponsored-by: Gothenburg University Library Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #82145|0 |1 is obsolete| | --- Comment #233 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 82258 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=82258&action=edit Bug 19893: Add index status Add persistent per index "index status" state to provide useful user feedback when update of Elasticsearch server mappings fails Sponsored-by: Gothenburg University Library Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #82146|0 |1 is obsolete| | --- Comment #234 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 82259 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=82259&action=edit Bug 19893: Fix Elasticsearch tests. https://bugs.koha-community.org/show_bug.cgi?id=19893 Sponsored-by: Gothenburg University Library Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #82147|0 |1 is obsolete| | --- Comment #235 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 82260 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=82260&action=edit Bug 19893: Restore and fix removed tests Sponsored-by: Gothenburg University Library Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #82148|0 |1 is obsolete| | --- Comment #236 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 82261 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=82261&action=edit Bug 19893: Support for joined subfields in mappings Sponsored-by: Gothenburg University Library Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #82149|0 |1 is obsolete| | --- Comment #237 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 82262 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=82262&action=edit Bug 19893: Fix tests and add tests for joined subfields Sponsored-by: Gothenburg University Library Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #82150|0 |1 is obsolete| | --- Comment #238 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 82263 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=82263&action=edit Bug 19893: Add pods, remove syspref, add tests for serialization format Add missing pods, remove obsolete syspref and add test for serialization format for records exceeding max record size Sponsored-by: Gothenburg University Library Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #82151|0 |1 is obsolete| | --- Comment #239 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 82264 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=82264&action=edit Bug 19893: Add code review fixes Sponsored-by: Gothenburg University Library Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #82152|0 |1 is obsolete| | --- Comment #240 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 82265 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=82265&action=edit Bug 19893: Increase test coverage Sponsored-by: Gothenburg University Library Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #241 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 82266 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=82266&action=edit Bug 19893: (QA follow-up) Spelling correction in POD Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #242 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Created attachment 82267 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=82267&action=edit Bug 19893: (QA follow-up) Convert atomicupdate to .perl Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA --- Comment #243 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Fantastic effort everyone.. thank you all for the perseverance and continual refinement of these patches and responses to feedback! I have added the Sponsored-by lines to each of the followup patches and added two very very minor QA followups. Passing QA, again, well done and thank you to everyone involved! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |release-notes-needed -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |Manual -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #244 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- *** Bug 21331 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #245 from David Gustafsson <glasklas@gmail.com> --- (In reply to Martin Renvoize from comment #243)
Fantastic effort everyone.. thank you all for the perseverance and continual refinement of these patches and responses to feedback!
I have added the Sponsored-by lines to each of the followup patches and added two very very minor QA followups.
Passing QA, again, well done and thank you to everyone involved!
Great! I replied regarding the missing documentation for concatenation in bug 21331 (https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21331#c7). Have not yet had time to look into it as perhaps need to create a new section for mappings.yaml in the Online manual. But agree this should be addressed. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Nick Clemens <nick@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |rel_18_11_candidate --- Comment #246 from Nick Clemens <nick@bywatersolutions.com> --- After discussion with several people I am considering this one and bug 20244 still as ES is not widely used and needs these improvements to be more usable. I tested what I can see, but can I get a detailed test plan to ensure we are covered here? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #247 from Ere Maijala <ere.maijala@helsinki.fi> --- Nick, I'm strongly supporting including these, and I'd like to nominate also bug 19365 for consideration. My test plan has been briefly put this: 1. Index records using the master version (and time the process) 2. Index records to another index after applying the patches here (and time the process) 3. Check that the new method is indeed faster after taking into account any caching-related differences. 4. Search for the same records in both indexes directly from Elasticsearch and compare the records to verify that the fields have been correctly indexed. 5. Change the title field rule from 245a to 245(abnp) and reindex. 6. Verify that the title field in the index now contains correctly concatenated subfields. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #248 from Ere Maijala <ere.maijala@helsinki.fi> --- I'll try to also post a pull request for an update to the manual. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #249 from Ere Maijala <ere.maijala@helsinki.fi> --- Actually, we don't have anything about Elasticsearch in the current manual, but when this has been committed, I'd be happy to revise the wiki page at https://wiki.koha-community.org/wiki/Elasticsearch/Implementation. It would be nice to revise the manual too, but that's out of scope here. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Nick Clemens <nick@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Pushed to Master --- Comment #250 from Nick Clemens <nick@bywatersolutions.com> --- Awesome work all! Pushed to master for 18.11 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #251 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Congrats to everyone involved! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #252 from Nicolas Legrand <nicolas.legrand@bulac.fr> --- Bravo! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Text to go in the| |This patch significantly release notes| |improves the performance of | |the ElasticSearch indexing | |process and also improves | |the maintainability of this | |area of the codebase. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #253 from David Gustafsson <glasklas@gmail.com> --- Late to the party, but nice! Great work everyone! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #254 from Ere Maijala <ere.maijala@helsinki.fi> --- I've now updated https://wiki.koha-community.org/wiki/Elasticsearch with more up to date information about the configuration. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #255 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- (In reply to Ere Maijala from comment #254)
I've now updated https://wiki.koha-community.org/wiki/Elasticsearch with more up to date information about the configuration.
+1 Thx Ere! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Pushed to Master |RESOLVED Resolution|--- |FIXED --- Comment #256 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Enhancement, will not be backported to 18.05.x series. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 --- Comment #257 from Nick Clemens <nick@bywatersolutions.com> --- *** Bug 21146 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19893 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|release-notes-needed | -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org