[ckan-dev] Weighted Fields for Query in SOLR

Peder Jakobsen | gmail pjakobsen at gmail.com
Mon Apr 8 15:47:37 UTC 2013


Hi Konrad,

I've just started research on extending the SOLR schema for our custom CKAN
implementation.  Is there a particular document or source file that you
found helpful in understanding how CKAN and SOLR is integrated?

Thanks,

Peder Jakobsen



On Mon, Apr 8, 2013 at 9:55 AM, David Raznick <david.raznick at okfn.org>wrote:

> Hello
>
> Solr mostly only does weighting at query time.
>
> The only way to define these withing an extenstion is to use the
>
> IPackageController interface and use the before_search hook.
>
> In the search params you can add a 'qf' key which should look like (and
> these are the defaults).
>
>  "name^4 title^4 tags^2 groups^2 text"
>
> Thanks
>
> David
>
>
> On Mon, Apr 8, 2013 at 2:05 PM, Konrad Reiche <konrad.reiche at gmail.com>wrote:
>
>> Hey there,
>>
>> I am desperate searching for the file which configures the weighting of
>> certain core metadata fields in CKAN. I thought the field weighting
>> (which field is more important when executing queries) is defined in
>> the schema.xml, but after inspecting it it does not seem so.
>>
>> Could someone point me out to it or am I missing something?
>>
>> Best regards,
>> Konrad
>>
>> ______________________________**_________________
>> ckan-dev mailing list
>> ckan-dev at lists.okfn.org
>> http://lists.okfn.org/mailman/**listinfo/ckan-dev<http://lists.okfn.org/mailman/listinfo/ckan-dev>
>> Unsubscribe: http://lists.okfn.org/mailman/**options/ckan-dev<http://lists.okfn.org/mailman/options/ckan-dev>
>>
>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130408/67541f62/attachment-0001.html>


More information about the ckan-dev mailing list