I'm doing a search on several date fields. Using Range on a single date field works just fine. However, when I "OR" the range on another date field, nothing is returned. This is how the query looks like:
var query = searchCriteria.Range("updateDate", fromDate, toDate)
.Or().Range("some_other_date", fromDate, toDate);
The resulting query is:
+updateDate:[from_date_value TO to_date_value] some_other_date:[from_date_value TO to_date_value]
That query results to an empty set. If I remove the someotherdate from query, I get the expected result. What am I missing?
Examine Range query on multiple date fields
I'm doing a search on several date fields. Using Range on a single date field works just fine. However, when I "OR" the range on another date field, nothing is returned. This is how the query looks like:
The resulting query is:
That query results to an empty set. If I remove the someotherdate from query, I get the expected result. What am I missing?
is working on a reply...