Can you do a range
query on a string
still using nest
in the lastest 2.0 alpha release? Or has this been dropped in elasticsearch.
Documentation -- suggests it is still in Elasticsearch itself
however
Range -- seems to only accept 'double'.
E.g.
...
(sh => sh.Range(ra => ra.Field(of =>
of.Name).LessThanOrEquals(
!string.IsNullOrEmpty(textInputName)
? textInputName.ToString(): null
))
...
Used to work in 1.7 Nest, but now says the input for LessThanOrEquals
must be a double
.
How do I now get everything where 'name' is between, for example, 'a' and 'f'?
Edit:
I think it was removed here in file src/Nest/QueryDsl/TermLevel/Range/RangeQuery.cs
... just can not find 'why'.... :S
Range()
method works on numeric fields with aDateRange()
method to work on date fields - Russ Cam