|
Lines 53-64
foreach my $index ( ('biblios','authorities') ){
Link Here
|
| 53 |
# Now we get all the ids from Elasticsearch |
53 |
# Now we get all the ids from Elasticsearch |
| 54 |
# The scroll lets us iterate through, it fetches chunks of 'size' as we move through |
54 |
# The scroll lets us iterate through, it fetches chunks of 'size' as we move through |
| 55 |
my $scroll = $es->scroll_helper( |
55 |
my $scroll = $es->scroll_helper( |
| 56 |
index => $searcher->index_name, |
56 |
index => $searcher->index_name, |
| 57 |
body => { |
57 |
_source => 0, |
| 58 |
size => 5000, |
58 |
body => { |
| 59 |
query => { |
59 |
size => 5000, |
| 60 |
match_all => {} |
60 |
query => { match_all => {} }, |
| 61 |
}, |
|
|
| 62 |
}, |
61 |
}, |
| 63 |
); |
62 |
); |
| 64 |
|
63 |
|
| 65 |
- |
|
|