[ckan-dev] Is CKAN suitable for textual search in a 10Gb dataset?

Vitor Baptista vitor at vitorbaptista.com
Mon Apr 7 20:59:54 UTC 2014


Hi Andrés,

2014-04-07 16:15 GMT-03:00 Andrés Martano <andres at inventati.org>:

> Thinking again... maybe I just need to customize the preview plug-in.
> What I need is something very similar to this:
> http://okfnlabs.org/recline/demos/search/
> The TXTs could be placed in the DataStore and then use a custom
> search/preview like the one in the example, right?
> But, instead of showing the TXTs' contents, it would list URLs for those
> TXTs.
>

Yes. There's an issue/pull request to improve our previews at
https://github.com/ckan/ckan/pull/1251, allowing a single resource to have
multiple different previews (called now resource views). It's still work in
progress, but we've already created a few extensions using it, like
github.com/ckan/ckanext-basiccharts and github.com/ckan/ckanext-mapviews.


> Is it possible to set URLs in CKAN via extensions? I mean, my CKAN is
> hosted in "myckan.org", and I want to make "myckan.org/id/2014/02/02/34"
> to be processed by my extension. That seems to solve the URIs problem.


Yes, it's possible using the IRoutes plugin interface. Check the docs at
http://docs.ckan.org/en/latest/extensions/plugin-interfaces.html#ckan.plugins.interfaces.IRoutes
and
an usage example by the DataStore at
https://github.com/ckan/ckan/blob/master/ckanext/datastore/plugin.py#L226-L230


Cheers,

-- 

Vítor Baptista

Developer  |  http://vitorbaptista.com |
LinkedIn<http://www.linkedin.com/in/vitorbaptista>|
@vitorbaptista <http://twitter.com/vitorbaptista>

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/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140407/4a23c19f/attachment-0003.html>


More information about the ckan-dev mailing list