lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jake Mannix <>
Subject Re: Term Boost Threshold
Date Fri, 13 Nov 2009 22:29:36 GMT
Did I do that wrong?  I always mess up the AND/OR human-readable form
of this - it's clearer when you use +/- unary operators instead:

query: "San Francisco" "California" +("John Smith" "John Smith

Here the San Fran and CA clauses are optional, and the ("John Smith" OR
"John Smith Manufacturing") is required.


On Fri, Nov 13, 2009 at 2:24 PM, Max Lynch <> wrote:

> >   You want a query like
> >
> > ("San Francisco" OR "California") AND ("John Smith" OR "John Smith
> > Manufacturing")
> >
> Won't his require San Francisco or California to be present?  I do not
> require them to be, I only require "John Smith" OR "John Smith
> Manufacturing", but I want to get a bigger score if the city and state are
> mentioned a long with it, so that's why I was thinking of doing different
> term boostings.  The most important term is the name, and then the company,
> and then the city and then the state.  Finding each one increases the
> quality of the result for me.
> Thanks.
> -max

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