lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: jaspq: dashed numerical values tokenized differently
Date Wed, 03 Nov 2004 15:49:01 GMT
On Nov 3, 2004, at 10:21 AM, Daniel Taurat wrote:
> Checked with Luke on the string
> dash\-123\-01
>
> and got
>
> dash
> 123
> 01
>
> with germanAnalyzer and standardAnalyzer
> and
>
> dash
>
> with all the other, except for whitespaceAnalyser, of course.
>
>
> This makes me think that an escaped dash is never a minus, somehow.

No builtin Analyzer considers backslash an escape character - and most 
consider it a delimiter between tokens and throws it away as you've 
seen.  Only QueryParser has the escape character feature.

	Erik


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


Mime
View raw message