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 <j...@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-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-user-h...@lucene.apache.org
>
>


-- 
Robert Muir
rcm...@gmail.com

Reply via email to