Create a FilterBuilder for NumericRangeFilter so that it may be used with the XML query parser.
Would it be also possible to alternatively create a NumericRangeQuery?
Updated patch to include a QueryBuilder for NumericRangeQuery.
I also forgot to update CoreParser in the original patch, this is now fixed.
Committed in revision 928114
A few tests are in a "com.apache.lucene" package and corresponding folder. This is somehow incorrect.
I fixed this here locally. Also the builder tests had wrong class names and were not run by ant test. Should I commit?
I will commit my changes to the package names and a missing super.tearDown() soon.
But I found one other thing:
NRQ allows one or both of the bounds to be null (like TermRangeQuery). But the builder enforces both attributes to be present.
Also I dont like the default type of "int", I would instead enforce the type. Will post a patch soon.
Should I commit?
Yes, thanks, Uwe. Missed that test/package.
Committed package and test fixes in revision: 928177
FYI, re changes to defaults. I try to keep the DTD up to date with all these changes.
Having done that I then have to manually run the dtdocbuild to generate nice HTML docs . This is currently not automated because of uncertainty about dragging dtddoc and dependencies into lucene builds.
It's a bit of a pain but html docs are useful and I'm hoping to add smart dtd-driven query entry into Luke.