lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jake dsouza <jakedsouz...@gmail.com>
Subject Re: two fields, the first important than the second
Date Thu, 26 Apr 2012 19:20:50 GMT
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.tajti@gmail.com> 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
>

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