[ckan-dev] Support for updates in the SOLR schema
Adrià Mercader
amercadero at gmail.com
Wed Nov 30 15:27:34 UTC 2011
On 30 November 2011 14:10, David Read <david.read at okfn.org> wrote:
> 2011/11/30 Adrià Mercader <adria.mercader at okfn.org>:
> I'm not convinced it is best to store the lowest valid ckan version in
> the schema. It is the CKAN code's responsibility to know which schema
> versions it is compatible with, rather than the other way round.
I agree that CKAN itself should handle different schema versions, but
maybe we could just leave it there for informative reasons (not
authoritative) :)
> The extra thing I would like is for CKAN to fail if it is hooked up to
> a SOLR which is running the wrong schema version. I can just see this
> as something we miss on deployment and will cause headaches. So can I
> suggest that somewhere on CKAN startup it gets hold of the schema
> (e.g. http://localhost:8983/solr/admin/file/?file=schema.xml)
I'm not 100% sure that this file can be always retrieved remotely. In
theory, you can configure SOLR to hide some files,
including the schema.xml one, so I don't know to which extent we could
rely on this on servers that are not managed by us (of which I don't
know any case).
In any case, which is the best place to put one of those startup checks in CKAN?
> [...] checks the version matches the version in it's local repo's schema or
> a hard-coded list of other compatible schema versions.
I think we will need some form of hardcoded list anyway, because I was
proposing to keep previous versions of the schema in the source, even
if they are not compatible (so SOLR servers can still point to them)
> also have an environment variable to disable this check, for testing
> purposes?.
> David
>
>> Unfortunately, I don't think there is a solution to support all
>> current sites if we were to update the schema in the SOLR servers, but
>> hopefully we can do put a setup in place that will make future updates
>> smoother.
>>
>>
>> Cheers,
>>
>> Adrià
>>
>> _______________________________________________
>> ckan-dev mailing list
>> ckan-dev at lists.okfn.org
>> http://lists.okfn.org/mailman/listinfo/ckan-dev
>>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
>
More information about the ckan-dev
mailing list