Home | About | Sematext search-lucene.com search-hadoop.com
 Search Lucene and all its subprojects:

Switch to Plain View
Lucene, mail # user - two fields, the first important than the second


+
Akos Tajti 2012-04-26, 19:12
+
jake dsouza 2012-04-26, 19:20
Copy link to this message
-
Re: two fields, the first important than the second
Akos Tajti 2012-04-26, 19:30
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 boosts
such a way that they always work as expected. Or is there an easy solution
for that? Am I doing something wrong,

Ákos

On Thu, Apr 26, 2012 at 9:20 PM, jake dsouza <[EMAIL PROTECTED]> wrote:

> 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 <[EMAIL PROTECTED]> wrote:
>
> > Dear List,
> >
> > we've been struggling the following problem for a while:
> > we have two fields: title and description. Title is generated from short
> > summaries while description is generated fromlong texts. We want to
> search
> > on both fields at the same time but we'd like to get all documents in
> which
> > the title matches the search term before all others. For multi term
> queries
> > we want to achieve the following: all documents that contain all terms in
> > their title must come before every other document, no matter how many
> times
> > the description matches the query. Is there a simple way to achieve this?
> >
> > Thanks in advance,
> > Ákos Tajti
> >
>
+
Ian Lea 2012-04-26, 19:36
+
Li Li 2012-04-27, 03:12
+
Li Li 2012-04-27, 03:17
+
Akos Tajti 2012-04-27, 06:59
+
Li Li 2012-04-27, 07:40