lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: bug in escaping special characters
Date Thu, 23 Jan 2003 01:40:38 GMT
Hello Kristian, thanks for the contribution.

Two quick questions:

1. do all unit tests still pass after your changes? (ant test-unit)
2. could you please make the diff against the latest QueryParser.jj?
(it seems like your QueryParser.jj is from June 2002 :))

Thanks!
Otis


--- Kristian Hermsdorf <kristian.hermsdorf@ifbus.de> wrote:
> Hi everyone ...
>  
> I think I found a bug in lucene query mechanism. QueryParser does
> mask 
> spechial charakters but doesn't unmask them. So a search for
> field:a\:b did 
> really search for a\:b in field (and not for a:b).
>  
> I added a few lines in QueryParser.jj to fix this issue.
>  
> I also added ' ' to _ESCAPED_CHAR to enable searches like
> field:hello\ 
> world.
>  
> I attach QueryParser.jj and bugfix.diff and hope these changes does
> not 
> collide with other thinks...
>  
>  
> bye
>  
> Kristian
> -- 
> ACRONYM: Acronym Causing Recursion, Obviously Numbing Your Mind  
>  
> Kristian Hermsdorf
>  
> interface:projects gmbh
> Tollkewitzer Straße  49
> 01277 Dresden
>  
>  
> tel.: ++49-351-3 18 09 39
>  
> mail: Kristian.Hermsdorf@interface-business.de
> priv: kristian@entropus.de

> ATTACHMENT part 2 application/octet-stream name=QueryParser.jj


> ATTACHMENT part 3 application/octet-stream name=bugfix.diff
> --
> To unsubscribe, e-mail:  
> <mailto:lucene-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:lucene-dev-help@jakarta.apache.org>


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   <mailto:lucene-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-dev-help@jakarta.apache.org>


Mime
View raw message