Re: Index and search terms containing character "-"

2009-06-03 Thread Erick Erickson
d my problem. > Luke allowed me to understand the queries and the content of the index. > > Thanks (Erick & Balasubramanian Sudaakeran) > Tom > > --- En date de : Dim 31.5.09, Erick Erickson a > écrit : > > De: Erick Erickson > Objet: Re: Index and search terms con

Re: Index and search terms containing character "-"

2009-06-02 Thread legrand thomas
Hi, A KeywordAnalyzer solved my problem. Luke allowed me to understand the queries and the content of the index. Thanks  (Erick & Balasubramanian Sudaakeran) Tom --- En date de : Dim 31.5.09, Erick Erickson a écrit : De: Erick Erickson Objet: Re: Index and search terms containing chara

Re: Index and search terms containing character "-"

2009-05-31 Thread Erick Erickson
Simple analyzer does two things: splits tokens on non-letter characters and lowercases them. So, in your test you've indexed the tokens "jack" and "bauer" in your second document, the hyphen is completely lost during tokenization and you have two tokens for that document. Using the term query "ja

Re: Index and search terms containing character "-"

2009-05-31 Thread balasubramanian sudaakeran
: Index and search terms containing character "-" Hi, I have a problem using TermQuery and FuzzyQuery for terms containing the character "-". Considering I've indexed "jack" and "jack-bauer" as 2 tokenized captions, I get no result when searching for &qu

Index and search terms containing character "-"

2009-05-31 Thread legrand thomas
Hi, I have a problem using TermQuery and FuzzyQuery for terms containing the character "-". Considering I've indexed "jack" and "jack-bauer" as 2 tokenized captions, I get no result when searching for "jack-bauer". Moreover, "jack" with a TermQuery returns the two captions.   What should I do t