ahhh great help, and the analysis console rocks!

again, many thanks

alessandro ferrucci :)

On 7/25/07, Yonik Seeley <[EMAIL PROTECTED]> wrote:

On 7/25/07, Alessandro Ferrucci <[EMAIL PROTECTED]> wrote:
> hey guys,
>
> I'm having an issue where if I have a document where the first name is:
> Ricky and the last name is: Johns
>
> and I give such a query:
>
> first-name:ricky* AND last-name:johns*;score desc,last-name
asc,first-name
> asc
> I get 0 results back. but if I change the query to be something like
> first-name:rick* AND last-name:john*;score desc,last-name asc,first-name
asc
> then I will get that document back....why would this occur? Both those
> fields are of type text.

The "text" field type has a porter stemmer, so "ricky" will most
likely stem to "ricki" and "johns" will stem to "john".  Try it out in
the admin analysis debugging page.

For proper names, you probably don't want a stemmer.  Perhaps just a
WhitespaceTokenizer followed by a LowercaseFilter.

-Yonik

Reply via email to