dismax: limiting term match to one field

2010-12-09 Thread davidbrai

Hello,
I'm trying to use dismax to search for several terms in several fields with
different weights.
It works good, but I want to limit the matching of terms to a single field.
example:
given the documents:
doc1=
name: pulp fiction
category: thriller
doc2=
name: pulp
category: fiction

query: qf=name^5 category&q=pulp fiction&mm=2

I want doc2 to get a higher score.
Can I do this using dismax?
-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/dismax-limiting-term-match-to-one-field-tp2056498p2056498.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: dismax: limiting term match to one field

2010-12-09 Thread davidbrai

Thanks for the relpy.
I've tried to add a tie breaker with different values, but in most cases it
didn't change anything, and sometimes caused weird things to have higher
scores, like you suggested might happen.

Is there another way?

On Thu, Dec 9, 2010 at 1:58 PM, jan.kurella [via Lucene] <
ml-node+2056811-1876551227-290...@n3.nabble.com
> wrote:

> try to set the tiebreaker above 1.0, this will increase score for dismax
> findings in other than the best field.
> But this may lead to strange side effects?
>
> >-Original Message-
> >From: ext davidbrai [mailto:[hidden 
> >email]<http://user/SendEmail.jtp?type=node&node=2056811&i=0>]
>
> >Sent: Donnerstag, 9. Dezember 2010 09:55
> >To: [hidden email] <http://user/SendEmail.jtp?type=node&node=2056811&i=1>
> >Subject: dismax: limiting term match to one field
> >
> >
> >Hello,
> >I'm trying to use dismax to search for several terms in several fields
> with
> >different weights.
> >It works good, but I want to limit the matching of terms to a single
> field.
> >example:
> >given the documents:
> >doc1=
> >name: pulp fiction
> >category: thriller
> >doc2=
> >name: pulp
> >category: fiction
> >
> >query: qf=name^5 category&q=pulp fiction&mm=2
> >
> >I want doc2 to get a higher score.
> >Can I do this using dismax?
> >--
> >View this message in context:
> http://lucene.472066.n3.nabble.com/dismax-limiting-term-match-to-one-field-tp2056498p2056498.html<http://lucene.472066.n3.nabble.com/dismax-limiting-term-match-to-one-field-tp2056498p2056498.html?by-user=t>
> >Sent from the Solr - User mailing list archive at Nabble.com.
>
>
> --
>  View message @
> http://lucene.472066.n3.nabble.com/dismax-limiting-term-match-to-one-field-tp2056498p2056811.html
> To unsubscribe from dismax: limiting term match to one field, click 
> here<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2056498&code=ZGF2aWRicmFpQGdtYWlsLmNvbXwyMDU2NDk4fC0xMDEyMDA2NQ==>.
>
>

-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/dismax-limiting-term-match-to-one-field-tp2056498p2057440.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: dismax: limiting term match to one field

2010-12-09 Thread davidbrai

Thanks for the answer Jan,

I noticed that my example doesn't correctly describe the problem I'm facing.
here's a better example:
doc1 is name=A B category=B
doc2 is name=A category=B

when searching for the terms "A" and "B" I want doc2 to get a higher score.
to be more specific, I don't want the term "B" to influence doc1's score in
both  and , only in one of them.

basically it means a query builder which allows each term to one field. but
it can allow several terms in the same field.

perhaps this is somehow possible?
-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/dismax-limiting-term-match-to-one-field-tp2056498p2059122.html
Sent from the Solr - User mailing list archive at Nabble.com.