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 48 posts 189 karma points notactivated
    6 days ago
    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 24 posts 152 karma points MVP c-trib
    6 days ago
    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 48 posts 189 karma points notactivated
    4 days ago
    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