Re: Question about the extends the query parser to support NumericField on Lucene 2.9.0

2009-10-27 Thread Luis Alves
Hi, The new queryparser, as the same restriction. Since +/- are operators for the lucene syntax, you need to escape them age:\-32 or use double quotes as suggested by Uwe. We have the idea to add queryparser extensions to the new queryparser in contrib in the near future, this would allow for u

RE: Question about the extends the query parser to support NumericField on Lucene 2.9.0

2009-10-22 Thread Uwe Schindler
If you look into the testcase I provided with my QueryParser example, you will see, that the negative numbers have a problem in newTermQuery. "-" is a control character in QueryParser, which means to do a "NOT" on this term. Because of this the syntax of the query is wrong. To hit the negative num