[ECODP-dev] ckan_reindex script

John Glover john.glover at okfn.org
Tue Sep 10 13:28:56 UTC 2013


Hello Bert,

It depends on when you are reindexing. The '-r' option does a 'refresh',
meaning that it does not clear out the old search index before rebuilding.
This is good in a live situation (eg: daily/weekly updates) where you just
want to update existing dataset information but don't want to drop all of
the current data which is generally good, but might for example not show
the most recent view counts for a dataset.

Without the '-r', the old search data is removed first, which is useful if
your database has changed (when rolling back for example to an older
version).

In general you will probably want to use '-r' but it will depend on the
context. It does not matter if the '-r' flag comes before or after the word
'rebuild' in the two examples above, although for the sake of consistency I
will remove one of them from the docs.

Regards,
John


On 10 September 2013 13:22, Bert Van Nuffelen <
bert.van.nuffelen at tenforce.com> wrote:

> Hi John,
>
> we have a ckan_reindex script.
>
> Based on the information from the updated operational manual document you
> shared with us we
> want to correct the release 09.00 script (see content below) with the
> updated statement.
>
> >>>
> USERHOME=/applications/ecodp/users/ecodp
> CKANHOME=$USERHOME/ckan
>
> source $CKANHOME/bin/paster.sh
>
> paster --plugin=ckan search-index rebuild -c $CKAN_INI
>
> >>>
>
> In the shared document we find 2 variants of the same paster command.
>
> a) paster --plugin=ckan search-index rebuild -r -c $CKAN_INI
>
> b)paster --plugin=ckan search-index -r rebuild -c $CKAN_INI
>
>
> Should we replace in our script the command with one of the above or
> should we add it.
>
> And are the above equivalent.
>
>
> kind regards,
>
>
> Bert
>
>
>
>
>
>
> --
> Bert Van Nuffelen
>
> Semantic Technologies Software Architect at TenForce
> www.tenforce.be
>
> Bert.Van.Nuffelen at tenforce.com
> Office: +32 (0)16 31 48 60
> Mobile:+32 479 06 24 26
> skype: bert.van.nuffelen
>
> _______________________________________________
> Ecodp-dev mailing list
> Ecodp-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ecodp-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.okfn.org/mailman/private/ecodp-dev/attachments/20130910/6a218f93/attachment.html>


More information about the ecodp-dev mailing list