Thanks gfor the details explanation. But as I understand this query will
still match only documents that contains both terms (either in the same
field or in different). What if there's a document that contains only
hello? This query will not find it, am I right? But what we want to
achieve is
+(title:hello title:world desc:hello desc:world)
(+title:hello +title:world)^100
(+desc:hello +desc:world)^50
(+title:hello +desc:world)^10
(+desc:hello +title:world)^10
the boost values(100,50,10,10) should be carefully adjusted.
if tf of a document is very large, 10 may be not enough.
you can
Hi,
I think what your are looking for is boost factor that you can use in your
score . Take a look at http://lucene.apache.org/core/3_6_0/scoring.html#Score
Boosting
- Jake
On Thu, Apr 26, 2012 at 3:12 PM, Akos Tajti akos.ta...@gmail.com wrote:
Dear List,
we've been struggling the
Jake,
we're already using index time boosts and tried querytime boosts earlier.
None of them helped. The problem was that if the description contained a
part of a multiterm query many many times it got higher score than the ones
that contained the terms in their title. So it is hard to set the
If you really mean must and always, you'll probably have to
execute 2 searches. First on title alone then on description, or
title and description, merging the hit lists as appropriate.
--
Ian.
On Thu, Apr 26, 2012 at 8:30 PM, Akos Tajti akos.ta...@gmail.com wrote:
Jake,
we're already
you should describe your ranking strategy more precisely.
if the query has 2 terms, hello and world for example, and your search
fields are title and description. There are many possible combinations.
Here is my understanding.
Both terms should occur in title or desc
query may be
sorry for some typos.
original query +(title:hello desc:hello) +(title:world desc:world)
boosted one +(title:hello^2 desc:hello) +(title:world^2 desc:world)
last one +(title:hello desc:hello) +(title:world desc:hello)
(+title:hello +title:world)^10 (+desc:hello +desc:world)^5
the example