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

--- Comment #1 from Julian Maurice <julian.maur...@biblibre.com> ---
Created attachment 129697
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=129697&action=edit
Bug 29921: Allow to index in ES all records modified since a given date

This patch adds an option `--modified-since` to rebuild_elasticsearch.pl
If used, all records modified since the given date will be indexed.

For biblios it uses biblio_metadata.timestamp (so items
modification time is not taken into account).
For authorities it uses auth_header.modification_time.

Test plan:
1. Create several biblio records at different times (or update manually
   the columns specified above)
2. Look at the records modification time (SELECT timestamp FROM
   biblio_metadata ORDER BY timestamp)
3. Run misc/search_tools/rebuild_elasticsearch.pl -b -v --modified-since
"$DATE"
   $DATE can be a date (YYYY-MM-DD) or datetime (YYYY-MM-DD HH:MM[:SS])
4. Verify that the correct number of records have been indexed

(do the same for authorities:)
5. Create several authority records at different times (or update
   manually the columns specified above)
6. Look at the records modification time (SELECT modification_time FROM
   auth_header ORDER BY modification_time)
7. Run misc/search_tools/rebuild_elasticsearch.pl -a -v --modified-since
"$DATE"
   $DATE can be a date (YYYY-MM-DD) or datetime (YYYY-MM-DD HH:MM[:SS])
8. Verify that the correct number of records have been indexed

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to