lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Umesh Prasad <umesh.i...@gmail.com>
Subject Re: solr boosting any perticular URL
Date Fri, 18 Jul 2014 10:19:16 GMT
Or you can give huge boosts to url  at query time. If you are using dismax
then you can use bq
like bq = myfield:url1 ^ 5000000000 .. That will bring up url1 as the first
result always.



On 18 July 2014 15:27, benjelloun <anass.bnj@gmail.com> wrote:

> hello,
>
> before index the URL to a field in Solr, you can use java api(Solrj) and do
> a test
> if(URL=="....")
> index on  field1
> else
> index on field2
>
>
> then use edismax to boost a specific field:
> <requestHandler name="/select" class="solr.SearchHandler">
> <lst name="defaults">
>        <str name="echoParams">explicit</str>
>        <int name="rows">10</int>
> <str name="defType">edismax</str>
>        <str name="qf">
>            field1^5.0 field2^1.0
>            </str>
> </requestHandler>
>
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/solr-boosting-any-perticular-URL-tp4147657p4147864.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>



-- 
---
Thanks & Regards
Umesh Prasad

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message