lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Klaas" <mike.kl...@gmail.com>
Subject Re: search-time boosting
Date Mon, 02 Apr 2007 18:15:50 GMT
On 4/2/07, Ofer Nave <ofer@smarter.com> wrote:
> I'd like to be able to boost documents at search-time, and I'm not sure
> how to do it.
>
> Example:
>
> I'm building a search engine for products (comparison shopping).  Many
> queries tend to indicate a category (i.e., 'digital cameras') as opposed
> to a product (i.e., 'canon powershot').  I have the name of the category
> the product is in indexed in a separate field.  My intention was to
> query both the title field and the category field, and when the category
> field relevancy is extremely high, boost the documents in that category.
>
> Is there a way to do this?  Or an alternative approach to the problem?

title:"digital cameras"^0.7 category:"digital cameras"^4.5

-Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message