[ckan-dev] recent Solr with space-separated, multi-valued fq parameter
Philippe Duchesne
pduchesne at gmail.com
Sun Jun 10 21:06:14 UTC 2018
Thank you for this pointer.
I understand solr 6 is the recommended version, but I had solr 7 has a
given constraint.
So, for the record, if solr 7 is ever to be supported, I managed to get the
whole thing running with the changes I mentioned, i.e. using fq_list
instead of fq whenever multiple filter values were required. That meant
patching ckan core, and ckanext-harvest.
best regards,
Philippe.
On Fri, Jun 8, 2018 at 8:04 PM Cam Findlay <cam at camfindlay.com> wrote:
> You may want to check if that version of solr is supported with CKAN 2.7,
> see this thread...
> https://lists.okfn.org/pipermail/ckan-dev/2017-October/011172.html
>
> On Sat, 2 Jun 2018 at 2:31 AM, Philippe Duchesne <pduchesne at gmail.com>
> wrote:
>
>> Hello,
>>
>> I currently have to deploy a CKAN 2.7 instance with Solr 7.3 .
>> It turns out that most dataset search requests fail, in that they return
>> all records.
>>
>> After some debugging, it appears that this instance of Solr does not
>> process properly fq values that contain space-separated filters, as those
>> produced by search/query.py, like
>> 'organization:"acme" +dataset_type:dataset -dataset_type:harvest
>> +site_id:"mysite" +state:active'
>>
>> I can't find any record of this in ckan or solr issues. Is this a known
>> problem, or a misconfiguration on my part?
>> I have a PR I can submit that replaces all space-separated fq values with
>> fq_list usage, but i'd like to know if this is a relevant fix first.
>>
>> Thanks,
>>
>> --p.
>> _______________________________________________
>> ckan-dev mailing list
>> ckan-dev at lists.okfn.org
>> https://lists.okfn.org/mailman/listinfo/ckan-dev
>> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20180610/c932d532/attachment-0002.html>
More information about the ckan-dev
mailing list