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

Pedro Amorim (ammopt) <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
                   |                            |k
             Status|Passed QA                   |Failed QA

--- Comment #5 from Pedro Amorim (ammopt) <[email protected]> ---
Hi all,

B1: Following the "single record" examples reindexes a whole index

The new 'Index a single biblio or authority' examples
('rebuild_elasticsearch.pl -v -bn 123' and 'rebuild_elasticsearch.pl -v -ai
456') don't pass -b or -a. Without either, the script indexes both biblios and
authorities, so -bn 123 also reindexes every authority and -ai 456 also
reindexes every biblio. On a large catalogue, that's a long run nobody asked
for:
1) Run perldoc misc/search_tools/rebuild_elasticsearch.pl and go to 'Index a
single biblio or authority' under EXAMPLES
2) Start KTD with Elasticsearch and run a full index once:
misc/search_tools/rebuild_elasticsearch.pl -v
3) Run the first example: misc/search_tools/rebuild_elasticsearch.pl -v -bn 1
4) Expected: only biblio 1 is indexed. Actual: 'Indexing biblios' shows 'Total
1 records indexed', then 'Indexing authorities' reindexes every authority
5) Run the second example: misc/search_tools/rebuild_elasticsearch.pl -v -ai 1
6) Expected: only authority 1 is indexed. Actual: authority 1 is indexed, then
every biblio is reindexed

B2: The "Very complex queries" example doesn't run
The single quote after --where is never closed.
1) Run perldoc misc/search_tools/rebuild_elasticsearch.pl and go to 'Very
complex queries' under EXAMPLES
2) From the Koha root in KTD, run the example as shown, with the script path
added:
   misc/search_tools/rebuild_elasticsearch.pl -v --biblios --where '
biblionumber in (select biblionumber from some_selection );
3) Expected: the command runs. Actual: the shell shows a '>' prompt waiting for
more input (Ctrl+C to get out)

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to