[ckan-dev] Change the default ckan facet search

mane moshref many_yammy at yahoo.com
Wed Oct 23 17:24:18 UTC 2019


 
Hi Harald,
Thanks for your prompt response.
It seems I wasn't precise.
1. with the example "content type" i just wanted to define and clarify what I mean by the the field name and value. So my use case is that whatever user defines as an extra field, the name of the field should automatically be added to the facet. Imagine if someone adds an extra field with whatever name e.g "X1", my ckan should automatically be able to add that to the corresponding facet search.Does it work? Or it only works when users are limited in giving the name field by some conditions such as to start all the extra field names with "extra_...." and then add that to the solar search syntax like "extra_*".
Regarding your explanation for point 3, do you mean that at the moment it is not implemented?
Do you know whether this is easy to implement it with manipulating the core code? or it makes more sense to make a plugin?
Best regardsMani
    On Wednesday, October 23, 2019, 1:36:39 PM GMT+2, von Waldow, Harald <Harald.vonWaldow at eawag.ch> wrote:  
 
 Hi Mani

If I understand correctly, you want to have a look at the SOLR search
syntax.

1. To find any dataset that has the field content_type, no matter its
value, search for "content_type:*"

3. Searching for the union of the packages for two or more
organizations works like so:

"organization:(decision-analysis OR stream-ecology)"

Making that more userfriendly, e.g. pimp the facet search UI so that
it allows users to combine searches with "OR", would be nice, and I'd
happily use it if someone implemented it :).

2. That's how I do it too. Hints for more elegance welcome.


Cheers,
Harald


On Wed, 2019-10-23 at 10:21 +0000, mane moshref wrote:
> Dear all,
> 
> I have couple of questions regarding the search facet and extra
> fields.
> 
> 1. Is it possible to index extra field and not extra value?
> I assume CKAN does not index the name/title of extra fields. for
> example I as a user add the field:"content type",
> Value:"monitoring". If I search 'monitoring' it retunrs the correct
> dataset, however if I search 'content type' nothing will return.
> So, is there any way to also search for the field name and not
> necessarily the value.
> 
> 2. In my use case, users should be open to add up to 4 extra
> fields. And I need to add to facet search, one is the extra field
> names and the other their values. Is there any way to add
> automatically this into the facet? o I need definitely give the
> extra field name (similar to this)
> 
>            EUDAT-B2FIND/ckanext-b2findB2FIND extension for
> CKAN. Contribute to EUDAT-B2FIND/ckanext-b2find development by
> creating an account on GitHub.  
> 
> 3. The current behaviour of CKAN is, in the page
> /myckan.com/dataset, i am only able to search based on one
> organisation. I mean there is no possibility to search datasets
> based on multiple chosen organisations. Is it possible this
> behaviour and if yes, which part of the could should i change?
> 
> 
> Many thanks in advance
> Best regards
> Mani
> 
> _______________________________________________
> 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
-- 
Harald von Waldow
Eawag
ICT Services
Research Data Management
Ueberlandstrasse 133
8600 Duebendorf
http://www.eawag.ch
https://opendata.eawag.ch_______________________________________________
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/20191023/69b86f57/attachment-0002.html>


More information about the ckan-dev mailing list