RE: Index Field with IntField and RangeQuery with LongRange

2013-08-23 Thread Uwe Schindler
r-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -Original Message- > From: Sanket Paranjape [mailto:sanket.paranjape.mailingl...@gmail.com] > Sent: Friday, August 23, 2013 4:17 PM > To: java-user@lucene.apache.org > Subject: Index Field with Int

Index Field with IntField and RangeQuery with LongRange

2013-08-23 Thread Sanket Paranjape
I created a index with IntField but while querying I create a NumericRangeQuery.newLongRange(...) (by mistake ofcourse). I was not getting any products and I had a hard time finding the issue. Should this be thrown as a exception so that user knows what the issue is. Something like type mismat