Copied to clipboard

Flag this post as spam?

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


  • Mus'ab 158 posts 387 karma points notactivated
    Sep 12, 2019 @ 14:21
    Mus'ab
    0

    How to return nodes in specific date by Examine - Umbraco8

    Hi,

    I am using Examine to return some nodes in Umbraco8. I just want to return nodes in a specific year or month (based on create date or date picker property).

    Here's my query.:

     results = searcher.CreateQuery()
                            .Field("path", Model.Path.ToString().MultipleCharacterWildcard()).And()
                            .Field("__IndexType", "content").And()                  
                            .Field("title", selectedTerm).And()
                            .Field("__NodeTypeAlias", "newsLetter").Execute();
    

    I tried to use range, but it doesn't work in Umbraco8

    Please advice.

    Thanks,

  • Laura Weatherhead 25 posts 153 karma points MVP 6x c-trib
    Sep 12, 2019 @ 14:45
    Laura Weatherhead
    2

    Hello!

    Nik Rimington has written an awesome article that might be able to point you in the right direction: https://www.justnik.me/blog/indexing-sort-able-dates-in-umbraco-version-8

    Well worth a read, and will hopefully get you on the right track!

    Cheers,

    Laura

  • Mus'ab 158 posts 387 karma points notactivated
    Sep 15, 2019 @ 07:42
    Mus'ab
    0

    Hi Laura

    this article is so complected I am looking for some thing like range query

Please Sign in or register to post replies

Write your reply to:

Draft