You should test your Analyzer to confirm what tokens are being produced. You
can do this by using a helper class, to save time there is one written in
the Lucene in Action book called AnalyzerUtils, you should be able to get it
out of the download of sourcecode from the book here:
http://www.lucene
that there is a lot of terms
stored in that document for alias, therefore weighting lower.
On 8/31/07, Michael Stoppelman <[EMAIL PROTECTED]> wrote:
>
> Kalvir,
>
> Have you tried giving the name field a boost? E.g. name:(John Smith)^10
> alias:(John Smith)
>
> -M
>
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