I'm a little lost in this thread ... if you are programaticly construction
a NumericRangeQuery object to execute in the JVM against a Solr index,
that suggests you are writting some sort of SOlr plugin (or uembedding
solr in some way)
why manually construct the query using options that may or may not be
correct if/when someone changes the schema, when you could just ask the
FieldType to construct the appropriate query for you?
FieldType ft = IndexSchema.getFieldType("your field name");
Query q = ft.getRnageQuery(...);
?
-Hoss