aboutsummaryrefslogtreecommitdiffstats
path: root/script/update-solr-index
blob: 75e4304eb09a3f444eba55811efa568d9066995a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

LOC=`dirname $0`

# Info request (and hence incoming and outgoing message) indexing is updated
# incrementally by this separate batch job. This is so when an incoming
# message arrives it doesn't have to call Solr, so errors in the indexing won't
# go back to public body.
$LOC/runner 'InfoRequest.update_solr_index()'

# Public bodies and users are updated by the model, immediately when it is saved.
# So nothing to do for them.