lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Xavier Orri <o...@octalis.com>
Subject Unexpected analyzer behaviour with special characters
Date Thu, 13 Oct 2005 12:29:12 GMT
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 String[]{"ses1-one3"});
    assertAnalyzesTo(a, "session-one", new String[]{"session","one"});
    assertAnalyzesTo(a, "session\\-one", new String[]{"session\\-one"});
}

Thanking in advance
Xavier Orri


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message