[ckan-dev] Dataset search

Nigel Babu nigel.babu at okfn.org
Wed Apr 2 03:09:49 UTC 2014


Hello,

Here's what I would do: Run package_search in a new function. If the user
is authenticated, run a database query that's for organizations you have
permissions for and then get a solr search of packages in that organization
(solr does have private datasets indexed, You need to add the capability
flag).

The database is slower and solr is faster, so when possible, use solr.

Nigel Babu

Developer  |  @nigelbabu <https://twitter.com/nigelbabu>

The Open Knowledge Foundation <http://okfn.org/>

Empowering through Open Knowledge

http://okfn.org/  |  @okfn <http://twitter.com/OKFN>  |  OKF on
Facebook<https://www.facebook.com/OKFNetwork> |
Blog <http://blog.okfn.org/>  |  Newsletter<http://okfn.org/about/newsletter>

 CKAN | http://ckan.org/ | @CKANproject
<http://twitter.com/CKANproject> |the world’s leading open-source data
portal platform


On 1 April 2014 19:55, Milica Knezevic <knezevic.milica at gmail.com> wrote:

> Hi all,
>
> we are implementing a wrapper around CKAN API. One of the things we want
> to implement is authorized search (CKAN authorization) over both public and
> private datasets with from-until parameters. package_search will return
> just public datasets and I know that this is by design, but I'm wondering
> if you have any suggestions how this search over both public and private
> can be achieved, using maybe some other function(s).
>
> Thanks in advance,
> Milica
>
> _______________________________________________
> 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/20140402/afe41c47/attachment-0003.html>


More information about the ckan-dev mailing list