Have you tried giving the name field a boost? E.g. name:(John Smith)^10
alias:(John Smith)
i'm also guessing youd be much happier with a sloppy phrase query then
with the boolean queries you are currently using..
name:"John Smith"~3^10 alias:"John Smith"~3
-Hoss
-
Thanks for the reply - i have tried boosting but not like you stated. I have
tried to boost the Alias field so that it would score as high as a match on
the name field. But it didn't increase enough. like :
name:(John Smith) alias:(John Smith)^10
I think it has something to do with the fact that
Kalvir,
Have you tried giving the name field a boost? E.g. name:(John Smith)^10
alias:(John Smith)
-M
On 8/31/07, Kalvir Sandhu <[EMAIL PROTECTED]> wrote:
>
> Hi all.
>
> I am working on building a lucene index to search names of people. I want
> to
> be able to score things differently. Here i
Hi all.
I am working on building a lucene index to search names of people. I want to
be able to score things differently. Here is an example of the behaviour i
need.
Doc 1 with aliases
name: Bob Jones
alias: John Smith Andrew Jones
Doc 2 without aliases
name: John Andrew Smith
alias: none
When