Copied to clipboard

Flag this post as spam?

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


  • Akhil Kulshrestha 2 posts 72 karma points
    Nov 08, 2023 @ 08:43
    Akhil Kulshrestha
    0

    For ExamineX experts : RangeQuery<DateTime> filter with ExamineX is not working?

    Have a strange issue with ExamineX in Umbraco 10. The scenario is specific to RangeQuery

    I am using the following code :

     query = query.And().RangeQuery<DateTime>(
                             new[] { "updateDate" },
                             StartDate,
                             EndDate,
                             minInclusive: true,
                             maxInclusive: false);
    

    This works all fine in case of local indexes however the updateDate field in ExamineX enabled environment looks like updateDate 10/30/2023 16:25:12.

    RangeQuery converts the query filter datetime to ticks and giving me zero results if examinex is enabled.

Please Sign in or register to post replies

Write your reply to:

Draft