You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by bbarani <bb...@gmail.com> on 2012/08/17 17:47:18 UTC
How to boost score of particular field in a copy field?
Hi,
I have 10 fields copied in to a single copy field for default search. I am
trying to boost one particular field in that copy field, but I am not sure
how boosting in copy field work. Can someone let me know how boosting works
in copy field?
Thanks,
BB
--
View this message in context: http://lucene.472066.n3.nabble.com/How-to-boost-score-of-particular-field-in-a-copy-field-tp4001864.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: How to boost score of particular field in a copy field?
Posted by Erick Erickson <er...@gmail.com>.
Have you tried simply searching across all 30
fields using (e)dismax? You can set this up in
a request handler in solrconfig.xml and forget
about it.
You could also de-boost the copied-to field
by using a boost < 1 (but > 0, e.g. 0.5).
Best
Erick
On Fri, Aug 17, 2012 at 10:13 AM, bbarani <bb...@gmail.com> wrote:
> Thanks a lot for your reply!!
>
> This is the problem I face now when using dismax.
>
> I have almost 30 fields (Some are dynamic fields from database) copied in to
> copy field that is being used for default search. Now when I search using
> dismax I need to include the boost for all the fields in the search query
> else it returns only the result corresponding to the field in qf.
>
> http://localhost:8983/solr/db/select?q=Stanley,%20robert&defType=dismax&qf=name
>
> I get just one result for above query
>
> http://localhost:8983/solr/db/select?q=Stanley,%20robert&defType=dismax&qf=name
> lastupdatedBy
>
> Now the search happens across 2 fields.
>
> I want to boost a particular field but at the same time I want the results
> that matches keyword from other fileds too.
>
> Thanks,
> BB
>
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/How-to-boost-score-of-particular-field-in-a-copy-field-tp4001864p4001873.html
> Sent from the Solr - User mailing list archive at Nabble.com.
Re: How to boost score of particular field in a copy field?
Posted by bbarani <bb...@gmail.com>.
Thanks a lot for your reply!!
This is the problem I face now when using dismax.
I have almost 30 fields (Some are dynamic fields from database) copied in to
copy field that is being used for default search. Now when I search using
dismax I need to include the boost for all the fields in the search query
else it returns only the result corresponding to the field in qf.
http://localhost:8983/solr/db/select?q=Stanley,%20robert&defType=dismax&qf=name
I get just one result for above query
http://localhost:8983/solr/db/select?q=Stanley,%20robert&defType=dismax&qf=name
lastupdatedBy
Now the search happens across 2 fields.
I want to boost a particular field but at the same time I want the results
that matches keyword from other fileds too.
Thanks,
BB
--
View this message in context: http://lucene.472066.n3.nabble.com/How-to-boost-score-of-particular-field-in-a-copy-field-tp4001864p4001873.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: How to boost score of particular field in a copy field?
Posted by Jack Krupansky <ja...@basetechnology.com>.
What you should consider is to use the edismax (or dismax) query parser and
then you can boost the individual fields. That's a major part of its reason
for existence - to overcome the limitation of copyField that you mention.
-- Jack Krupansky
-----Original Message-----
From: bbarani
Sent: Friday, August 17, 2012 11:47 AM
To: solr-user@lucene.apache.org
Subject: How to boost score of particular field in a copy field?
Hi,
I have 10 fields copied in to a single copy field for default search. I am
trying to boost one particular field in that copy field, but I am not sure
how boosting in copy field work. Can someone let me know how boosting works
in copy field?
Thanks,
BB
--
View this message in context:
http://lucene.472066.n3.nabble.com/How-to-boost-score-of-particular-field-in-a-copy-field-tp4001864.html
Sent from the Solr - User mailing list archive at Nabble.com.