[Koha-bugs] [Bug 20384] Elastic rebuild script improvements - options for indexing

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri May 17 13:54:48 CEST 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20384

--- Comment #9 from axel Amghar <axel.amghar at biblibre.com> ---
Created attachment 89886
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=89886&action=edit
Bug 20384 - Elastic rebuild script improvements - options --offset, --length &
--file

This patch add the options --offset, --length & --file to the script:
misc/search_tools/rebuild_elastic_search.pl

To test :
- apply the patch
- verify that the script by default is working, launch :
        perl misc/search_tools/rebuild_elastic_search.pl -v -d -c 100

- launch with the option --offset
- then with the option --length
- launch with both options :
        perl misc/search_tools/rebuild_elastic_search.pl -v -d -c 100 --offset
1000 --length 200
- verify that the total records indexed is 200

launch perl misc/search_tools/rebuild_elastic_search.pl --man
for help

Option --file :

To test:
- after testing offset and length, apply this patch
- launch perl misc/search_tools/rebuild_elastic_search.pl -v -d -c 100 --file
your_file.csv
your file need to contain a column of biblionumber from biblio or authid from
auth_header (only one column)
You can go in Koha -> reports -> Create from sql
SELECT biblionumber FROM biblio ;
and then download in csv to have your csv file.
- You can test with others query like :
select biblionumber from biblio WHERE author LIKE 'a%';
Total number of results (411);
- verify that you have the rigth number of records indexed

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list