[ckan-dev] could you tell me which file and where configs to update solr index file automatically after modifying dataset attributes?

Adrià Mercader adria.mercader at okfn.org
Wed Apr 17 10:10:39 UTC 2013


Hi,

By default, datasets are automatically indexed on Solr after a change
(this can be turned off using a config option [1])
If you are curious about the implementation, there is an internal
plugin that listens to changes on datasets and fires the reindex when
this happens.
Relevant code is here:
https://github.com/okfn/ckan/blob/master/ckan/config/environment.py#L138
https://github.com/okfn/ckan/blob/master/ckan/lib/search/__init__.py#L115


Adrià


[1] http://docs.ckan.org/en/latest/configuration.html#ckan-search-automatic-indexing

On 16 April 2013 10:29, bupt bupt <buptloveandroid at gmail.com> wrote:
> hello everyone,
>       now I can create CKAN dataset and upload data file, when I create one
> dataset, I find that solr index files are updated in
> "/var/lib/solr/data/index" automatically, But what confused me most is where
> and which file's configuration help to update new Solr index file
> automatically? Can you help me point out where and which file do this
> automatic update solr index work? Can you point out the file path and which
> function do it?
>  Thank you very much~~
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>




More information about the ckan-dev mailing list