[Koha-bugs] [Bug 29921] Allow to index in Elasticsearch all records modified since a given date
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Jan 21 14:46:07 CET 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29921
--- Comment #1 from Julian Maurice <julian.maurice at 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.
More information about the Koha-bugs
mailing list