Hi, I have a very simple example. An IndexWriter (Lucene 1.9.0) with CJKAnalyzer (latest version as of today). A Chinese friend of mine as given me a sentence and a word that appears in that sentence, eg:
"C1C2C3C4C5C6C7C8" where the word is "C3C4". Here's code segment: IndexWriter writer = new IndexWriter(directory, new CJKAnalyzer(), true); Document doc = new Document(); doc.add(new Field("name", " C1C2C3C4C5C6C7C8", Store.YES, Index.TOKENIZED)); writer.addDocument(doc); writer.optimize(); writer.close(); IndexSearcher searcher = new IndexSearcher(directory); Hits hits = searcher.search(new TermQuery(new Term("name", "C3C4"))); This returns no hits. I've also tried with the ChineseAnalyzer too, but still no good. It still works fine for English though. Anyone know how to get this working? Rob. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]