[ckan-dev] change search from OR to AND
Qifeng.Bai at csiro.au
Qifeng.Bai at csiro.au
Wed Aug 20 23:04:28 UTC 2014
Hi, Lothar
I am also after a 'and' solution. Would you mind sharing you're the query snippets part in package.py?
Cheers
Qifeng
-----Original Message-----
From: ckan-dev [mailto:ckan-dev-bounces at lists.okfn.org] On Behalf Of hotz
Sent: Thursday, 21 August 2014 4:01 AM
To: ckan-dev at lists.okfn.org
Subject: Re: [ckan-dev] change search from OR to AND
Hi,
we did it by passing the 'mm': '100%' Parameter via the Solr query while we customize our search in the controller/package.py scheme.
Best,
lothar
Am 20.08.2014 00:48, schrieb James Gagan:
> Reposting in case this was overlooked. Apologies if that is bad etiquette.
>
> I would like to change the default search in CKAN to use AND rather
> than OR so that we get more precise search results.
> It seems out of the box, the search will bring back records containing
> ANY of the search terms rather than records only containing ALL search
> terms.
> I can't find much in the way of documentation on this, or an obvious
> place in the code to control it so I am seeking suggestions. Would
> this be done in SOLR configuration, or is there a place in CKAN I make
> this change (or extend the code) from OR to AND.
>
> thanks again,
> James
--
Dr. Lothar Hotz
HITeC e.V., University of Hamburg
Vogt-Kölln-Str. 30, 22527 Hamburg
Tel: 040/42883-2605; Fax: 040/42883-2572
E-Mail: hotz at informatik.uni-hamburg.de
WWW: www.hitec-hh.de
Private page: kogs-www.informatik.uni-hamburg.de/~hotz
_______________________________________________
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
More information about the ckan-dev
mailing list