[ckan-dev] change search from OR to AND
James Gagan
james at everlook.ca
Wed Aug 20 20:42:20 UTC 2014
Thank you, Dr. Hotz.
You pointed me in the right direction. I ended up prepending
'{!lucene q.op=AND}' to the query string, and it seems to do what we
need.
Glad I reposted!
cheers,
james
On Wed, Aug 20, 2014 at 11:01 AM, hotz <hotz at informatik.uni-hamburg.de> wrote:
> 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
--
James Gagan
Everlook Systems inc.
james at everlook.ca
250-508-2155
More information about the ckan-dev
mailing list