You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lucenenet.apache.org by Micky McQuade <mi...@vintagesoftware.com> on 2008/03/17 22:23:07 UTC
Giving Preference to Certain Indexes
I am doing a search on multiple indexes. I'd like the results from one
particular index to be given preference. Is it possible to boost results
from one particular index?
Thanks,
Micky
Re: Giving Preference to Certain Indexes
Posted by Micky McQuade <mi...@vintagesoftware.com>.
I like your second idea there. I'll give that a try. Thanks a lot!
Micky
On Tue, Mar 18, 2008 at 1:06 PM, Digy <di...@gmail.com> wrote:
> I see no simpler way than making separate searches and then merging the
> results with some calculation on "score" field.
>
> If you can add a new field to indexes to describe its category(or
> indexname), than you can create a query using
> boost factors like this:
>
> "((+Content:benjamin +Category:movies)^2.0) ((+Content:benjamin +
> Category:music)^2.0) ((Content:benjamin)^0.5)" --> //Searching for
> benjamin while giving more priority if the category is music or movies.
>
> DIGY
>
> -----Original Message-----
> From: Micky McQuade [mailto:micky@vintagesoftware.com]
> Sent: Monday, March 17, 2008 11:23 PM
> To: lucene-net-user@incubator.apache.org
> Subject: Giving Preference to Certain Indexes
>
> I am doing a search on multiple indexes. I'd like the results from one
> particular index to be given preference. Is it possible to boost results
> from one particular index?
>
> Thanks,
> Micky
>
>
RE: Giving Preference to Certain Indexes
Posted by Digy <di...@gmail.com>.
I see no simpler way than making separate searches and then merging the
results with some calculation on "score" field.
If you can add a new field to indexes to describe its category(or
indexname), than you can create a query using
boost factors like this:
"((+Content:benjamin +Category:movies)^2.0) ((+Content:benjamin +
Category:music)^2.0) ((Content:benjamin)^0.5)" --> //Searching for
benjamin while giving more priority if the category is music or movies.
DIGY
-----Original Message-----
From: Micky McQuade [mailto:micky@vintagesoftware.com]
Sent: Monday, March 17, 2008 11:23 PM
To: lucene-net-user@incubator.apache.org
Subject: Giving Preference to Certain Indexes
I am doing a search on multiple indexes. I'd like the results from one
particular index to be given preference. Is it possible to boost results
from one particular index?
Thanks,
Micky