Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • von 61 posts 123 karma points
    Oct 17, 2018 @ 10:20

    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:

    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?

Please Sign in or register to post replies

Write your reply to: