[ckan-dev] Different Solr Queries for Organizations

Jari Voutilainen jari.voutilainen at iki.fi
Fri Aug 5 07:03:14 UTC 2016


Hi,

organizations and groups are queried from postgresql as far as I can think
of, at least according to here
https://github.com/ckan/ckan/blob/master/ckan/logic/action/get.py#L1891,
same as licences.

-- jari

On Thu, Aug 4, 2016 at 3:19 PM, Fabian Kirstein <
fabian.kirstein at fokus.fraunhofer.de> wrote:

> Hey Ian,
>
> it's here: https://gitlab.com/european-data-portal/ckanext-edp
>
> I also checked it directly in Solr:
> /select?indent=on&q=organization:gdi-de +state:active
> +dataset_type:dataset&wt=json --> around 190.000 Datasets
> /select?indent=on&q=owner_org:af606151-dc1b-4134-8780-cef39b4a41b6
> +state:active&wt=json --> around 99.000 Datasets
>
> And I'm still wondering how the query for owner_org is possible. It's
> not in the schema.
>
> Thanks.
> Fabian
>
>
>
> On 03.08.2016 18:32, Ian Ward wrote:
> > You're right, that doesn't match the behaviour I expected. It's worth
> > checking their extensions for customisations to the search queries or
> > controllers.
> >
> > On Wed, Aug 3, 2016 at 12:27 PM, Fabian Kirstein
> > <fabian.kirstein at fokus.fraunhofer.de> wrote:
> >> Hey Ian,
> >>
> >> Are you sure this is the reason in this case? The difference is huge and
> >> the /organization/xxx view has less datasets, but has the less
> >> restrictive query.
> >>
> >> Thanks.
> >> Fabian
> >>
> >>
> >>
> >> On 03.08.2016 16:52, Ian Ward wrote:
> >>> Dataset search behaviour is a little strange.
> >>>
> >>> /dataset shows only public datasets with type='dataset' (by default
> >>> you can allow all types with a config option)
> >>>
> >>> /organization/xxx shows public and private datasets with any type
> >>>
> >>> I will likely be working on this area of the code soon. I think the
> >>> best change would be to make /dataset behave like the
> >>> /organization/xxx pages by default: show private and all types of
> >>> datasets, but allow the current behaviour with config options.
> >>>
> >>> On Wed, Aug 3, 2016 at 9:39 AM, Adrià Mercader <
> adria.mercader at okfn.org> wrote:
> >>>> Hi Fabian,
> >>>>
> >>>> On 3 August 2016 at 10:47, Fabian Kirstein
> >>>> <fabian.kirstein at fokus.fraunhofer.de> wrote:
> >>>>> and on the organization view page it is done via the owner_org field
> >>>> Can you clarify where exactly is this query done? An example in
> >>>> demo.ckan.org or a public site would be great.
> >>>>
> >>>> Adrià
> >>>> _______________________________________________
> >>>> 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
> >> --
> >> Fabian Kirstein M.Sc.
> >> Fraunhofer-Institut für Offene Kommunikationssysteme FOKUS
> >> Digital Public Services (DPS)
> >>
> >> Kaiserin-Augusta-Allee 31
> >> 10589 Berlin, Deutschland
> >> Tel.  + 49 30 3463 7718
> >> E-Mail: fabian.kirstein at fokus.fraunhofer.de
> >> Internet: www.fokus.fraunhofer.de
> >>
> >>
> >>
> >>
> >> _______________________________________________
> >> 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
>
> --
> Fabian Kirstein M.Sc.
> Fraunhofer-Institut für Offene Kommunikationssysteme FOKUS
> Digital Public Services (DPS)
>
> Kaiserin-Augusta-Allee 31
> 10589 Berlin, Deutschland
> Tel.  + 49 30 3463 7718
> E-Mail: fabian.kirstein at fokus.fraunhofer.de
> Internet: www.fokus.fraunhofer.de
>
>
>
>
> _______________________________________________
> 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/20160805/90c4d7f5/attachment-0003.html>


More information about the ckan-dev mailing list