Re: RangeQuery and getTerm

2009-04-28 Thread Mark Miller
hi.de -Original Message- From: Mark Miller [mailto:markrmil...@gmail.com] Sent: Tuesday, April 28, 2009 3:28 AM To: java-dev@lucene.apache.org Subject: RangeQuery and getTerm RangeQuery is based on two terms rather than one, and currently returns null from getTerm. This can lead to less than ob

Re: RangeQuery and getTerm

2009-04-28 Thread Michael McCandless
On Tue, Apr 28, 2009 at 2:38 AM, Uwe Schindler wrote: > Why not deprecate getTerm() in MultiTermQuery, remove the field in > MultiTermQuery and all related occurrences? The field and methods are then > *not* deprecated and senseful implemented in Fuzzy*. +1 Mike ---

RE: RangeQuery and getTerm

2009-04-27 Thread Uwe Schindler
-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -Original Message- > From: Mark Miller [mailto:markrmil...@gmail.com] > Sent: Tuesday, April 28, 2009 3:28 AM > To: java-dev@lucene.apache.org > Subject: RangeQuery and getTerm > > RangeQuery is based on two

RangeQuery and getTerm

2009-04-27 Thread Mark Miller
RangeQuery is based on two terms rather than one, and currently returns null from getTerm. This can lead to less than obvious null pointer exceptions. I'd almost prefer to throw UnsupportedOperationException. However, returning null allows you to still use getTerm on MultiTermQuery and do a