Re: TermQuery doesn't support non-english charecters

2006-07-10 Thread Erik Hatcher
On Jul 9, 2006, at 8:29 AM, dan2000 wrote: yes, myField is a tokenized field. I've used ChineseAnalyzer. here is an examle text ?? Let me explain what exactly what I want. myField is a tokenized field: new Field("key",key, Field.Store.YES, Field.Index.TOKENIZED) I sometimes need to find

Re: TermQuery doesn't support non-english charecters

2006-07-09 Thread dan2000
yes, myField is a tokenized field. I've used ChineseAnalyzer. here is an examle text ?? Let me explain what exactly what I want. myField is a tokenized field: new Field("key",key, Field.Store.YES, Field.Index.TOKENIZED) I sometimes need to find the exact match. What would be the best way to fin

Re: TermQuery doesn't support non-english charecters

2006-07-09 Thread Erik Hatcher
What exactly is the value of myKey that doesn't work? What text did you index (and with what Analyzer) that you expect to find? If myField is a tokenized field, you need to be sure myKey has the same analysis done to it to match what would have gotten indexed. Erik On Jul 9, 200

Re: TermQuery doesn't support non-english charecters

2006-07-09 Thread dan2000
Ok, here is my code: Term term = new Term(myField, myKey); TermQuery query = new TermQuery(term); mySearcher.search(query); If myKey is an English, everything works fine. If myKey is not an English, it always return null. With other types queries, I can use this: Query query = new QueryParser(my

Re: TermQuery doesn't support non-english charecters

2006-07-09 Thread Erik Hatcher
On Jul 8, 2006, at 3:54 PM, dan2000 wrote: When non-English word is used in TermQuery, it always returns null. With other types query, I could pass in an language specific analyzer. but with this TermQuery, I can't find anyway to specify the language. What other types of queries are you re