View | Details | Raw Unified | Return to bug 40890
Collapse All | Expand All

(-)a/debian/scripts/koha-es-indexer (-1 / +1 lines)
Lines 163-169 set_action() Link Here
163
163
164
op=""
164
op=""
165
quiet="no"
165
quiet="no"
166
batch_size=10
166
batch_size=$(get_es_indexer_batch_size ${name})
167
167
168
# Read command line parameters
168
# Read command line parameters
169
while [ $# -gt 0 ]; do
169
while [ $# -gt 0 ]; do
(-)a/debian/scripts/koha-functions.sh (+11 lines)
Lines 501-503 run_safe_xmlstarlet() Link Here
501
    echo $(xmlstarlet sel -t -v "yazgfs/config/$myexpr" /etc/koha/sites/$instancename/koha-conf.xml)
501
    echo $(xmlstarlet sel -t -v "yazgfs/config/$myexpr" /etc/koha/sites/$instancename/koha-conf.xml)
502
    return 0
502
    return 0
503
}
503
}
504
505
get_es_indexer_batch_size()
506
{
507
    local instancename=$1
508
    local retval=$(xmlstarlet sel -t -v 'yazgfs/config/es_indexer_batch_size' /etc/koha/sites/$instancename/koha-conf.xml)
509
    if [ "$retval" != "" ]; then
510
        echo "$retval"
511
    else
512
        echo "10"
513
    fi
514
}
(-)a/debian/templates/koha-conf-site.xml.in (+3 lines)
Lines 372-377 __END_SRU_PUBLICSERVER__ Link Here
372
      Resetting mappings will override any changes made in the Search engine configuration UI.
372
      Resetting mappings will override any changes made in the Search engine configuration UI.
373
 -->
373
 -->
374
 <!-- <elasticsearch_index_mappings>__KOHA_CONF_DIR__/searchengine/elasticsearch/mappings.yaml</elasticsearch_index_mappings> -->
374
 <!-- <elasticsearch_index_mappings>__KOHA_CONF_DIR__/searchengine/elasticsearch/mappings.yaml</elasticsearch_index_mappings> -->
375
 <!-- How many indexing tasks the ES indexer will pick at a time
376
      If the site is so busy the queue keeps growing, raise it -->
377
 <es_indexer_batch_size>10</es_indexer_batch_size>
375
378
376
 <interlibrary_loans>
379
 <interlibrary_loans>
377
     <!-- Path to where Illbackends are located on the system
380
     <!-- Path to where Illbackends are located on the system
(-)a/etc/koha-conf.xml (-1 / +3 lines)
Lines 191-196 Link Here
191
      Resetting mappings will override any changes made in the Search engine configuration UI.
191
      Resetting mappings will override any changes made in the Search engine configuration UI.
192
 -->
192
 -->
193
 <!-- <elasticsearch_index_mappings>__KOHA_CONF_DIR__/searchengine/elasticsearch/mappings.yaml</elasticsearch_index_mappings> -->
193
 <!-- <elasticsearch_index_mappings>__KOHA_CONF_DIR__/searchengine/elasticsearch/mappings.yaml</elasticsearch_index_mappings> -->
194
 <!-- How many indexing tasks the ES indexer will pick at a time
195
      If the site is so busy the queue keeps growing, raise it -->
196
 <es_indexer_batch_size>10</es_indexer_batch_size>
194
197
195
 <interlibrary_loans>
198
 <interlibrary_loans>
196
     <!-- Path to where Illbackends are located on the system
199
     <!-- Path to where Illbackends are located on the system
197
- 

Return to bug 40890