Copied to clipboard

Flag this post as spam?

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


  • Adam Arkley 3 posts 72 karma points
    Jul 20, 2017 @ 15:54
    Adam Arkley
    0

    Lucene Range search disfunctional

    Hello,

    I'm using Umbraco v7.2 for a site, and have run into a highly entertaining issue trying to search for things using the External Searcher by a date of ranges.

    If I perform a Lucene search using the examine management search tools in the backoffice, I get results using this query:

    {(+__NodeTypeAlias:bookingperiod)} AND startDate:2016-03-01T00\:00\:00
    

    Subsequently, I KNOW that I can get results that include this date in a range. However, what's highly entertaining, quite puzzling and really rather frustrating, is that if I use a range query, I get no results. Here's the syntax:

    {(+__NodeTypeAlias:bookingperiod)} AND +(startDate:[2016-02-28T00:00:00 TO 2016-03-20T00:00:00])
    

    Now, in the interests of clarity, I've tried escaping the colon characters int he range as well, but it makes no difference at all. Can anyone explain to me where I'm going wrong?

    Thanks!

Please Sign in or register to post replies

Write your reply to:

Draft