Re: Unexpected analyzer behaviour with special characters

2005-10-13 Thread Erik Hatcher
StandardAnalyzer does not have any escaped-character handling capability. So the backslash and dash are treated without any special care in "session\-one". You will need to build your own Analyzer with a custom tokenizer to handle this type of escaping. Erik On Oct 13, 2005, at 8:29

Unexpected analyzer behaviour with special characters

2005-10-13 Thread Xavier Orri
Hi, I don't understand why my third test fails. If I scape my "- delimiter" what I expect is a character behaviour. Could you clarify me what I'm doing wrong? public void testStandardAnalyzer() throws Exception { Analyzer a = new StandardAnalyzer(); assertAnalyzesTo(a, "ses1-one3", new