Copied to clipboard

Flag this post as spam?

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


  • Remko 118 posts 283 karma points
    Jul 09, 2019 @ 09:26
    Remko
    0

    Query on umbracoNaviHide results in exception: Could not perform a range query on the field umbracoNaviHide

    When I try to query nodes just by passing umbracoNaviHide = false to query I got the Exception: Could not perform a range query on the field umbracoNaviHide, it's value type is Examine.LuceneEngine.Indexing.FullTextType

    This is my code:

     var searcher = index.GetSearcher();
     var booleanOperation = searcher.CreateQuery("content").Field<bool>("umbracoNaviHide", false);
    
     var content = booleanOperation.Execute().ToList();
    

    What am I doing wrong here? Could anyone tell me please? Thanks! :-)

  • David Challener 80 posts 444 karma points c-trib
    Jul 09, 2019 @ 13:34
    David Challener
    0

    I've not tried specifically for v8 but in v7 we had to pass the value as a string.

    so "0" for false!

    .Field("umbracoNaviHide", "0");
    

    Try this and let me know if it helps.

    Thanks, David

Please Sign in or register to post replies

Write your reply to:

Draft