[ckan-dev] change search from OR to AND
hotz
hotz at informatik.uni-hamburg.de
Wed Aug 20 18:01:23 UTC 2014
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
More information about the ckan-dev
mailing list