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

bupt bupt buptloveandroid at gmail.com
Thu Apr 18 11:33:51 UTC 2013


ok,thank you very much, I find it
@Adrià Mercader


2013/4/17 Adrià Mercader <adria.mercader at okfn.org>

> 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
> >
>
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130418/25e8c448/attachment-0001.html>


More information about the ckan-dev mailing list