lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Muir <rcm...@gmail.com>
Subject Re: scoring adjacent terms without proximity search
Date Fri, 30 Oct 2009 19:56:53 GMT
yet another thing to look into that might improve things a bit is using
ShingleFilter in contrib.

this way cheese sandwich would form a shingle of "cheese sandwich" and would
get a higher score for the "Toasted Cheese Sandwich" document.

it wouldn't solve the proximity problem in general, but maybe it would help,
depending on your requirements.

On Fri, Oct 30, 2009 at 5:49 AM, Joel Halbert <joel@su3analytics.com> wrote:

> Hi,
>
> Without using a proximity search i.e. "cheese sandwich"~5
>
> What's the best way of up-scoring results in which the search terms are
> closer to each other?
>
> E.g. so if I search for:
> content:cheese  content:sandwich
>
> How do you ensure that a document with content:
> "Toasted Cheese Sandwich"
> scores higher then:
> "Cheese and Potato, Tuna sandwich"
>
> Joel
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>


-- 
Robert Muir
rcmuir@gmail.com

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