Bug 18130

Summary: ES - Cannot reindex given biblionumbers
Product: Koha Reporter: Jonathan Druart <jonathan.druart>
Component: SearchingAssignee: Jonathan Druart <jonathan.druart>
Status: CLOSED INVALID QA Contact: Testopia <testopia>
Severity: major    
Priority: P5 - low    
Version: unspecified   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18085
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 12478    
Bug Blocks:    
Attachments: Bug 18130: ES - Fix --biblionumbers for rebuild elastic indexes

Description Jonathan Druart 2017-02-16 10:22:26 UTC
rebuild_elastic_search.pl provides a --biblionumber/-bn option to reindex only given biblionumbers.
However it does not work and the script explodes with
  Can't locate object method "id" via package "MARC::Record"
Comment 1 Jonathan Druart 2017-02-16 10:24:26 UTC
Created attachment 60309 [details] [review]
Bug 18130: ES - Fix --biblionumbers for rebuild elastic indexes

rebuild_elastic_search.pl provides a --biblionumber/-bn option to
reindex only given biblionumbers.
However it does not work and the script explodes with
  Can't locate object method "id" via package "MARC::Record"

Test plan:
Full reindex and reindex only given biblionumbers should work:
  perl misc/search_tools/rebuild_elastic_search.pl -a -b -v
  perl misc/search_tools/rebuild_elastic_search.pl -b -v
  perl misc/search_tools/rebuild_elastic_search.pl -b -bn 42 -v