Reputation: 879
I put some fields like manufacturer
, group
, description
, num
.
SimpleFaceted works ok if I use query like sometext*
with QueryParser.
Im trying to use num:[100 TO 200]
,
num is NumericField with SetIntValue(150).
I got nothing returned.
Am I missing something?
Upvotes: 2
Views: 764
Reputation: 3941
You can't use a normal query parser for numeric range queries. However, assuming you know at query time which fields are numeric, it isn't too hard to derive a class from the Lucene query parser and create numeric range queries as necessary.
Support for numeric queries in the standard query parser looks like it should be available in Lucene.Net when a port of v3.4 is available. (See Java Lucene issue 1768)
Good luck,
Upvotes: 1