Copied to clipboard

Flag this post as spam?

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


  • facundo 2 posts 23 karma points
    Aug 28, 2014 @ 16:15
    facundo
    0

    Examine quering by level

    Hi everyone. I'm new as umbraco developer. But I tried to search some document types on the same level that Home or at the same level at a DocumentType but quering using examine i didn't receive 0 documents as a result.

    I need to search some document type that is located in the root node or inside of a documentType

    this is the criteria that i used

    var provider = ExamineManager.Instance;

    var criteria = provider.CreateSearchCriteria(UmbracoExamine.IndexTypes.Content);

    //At same level that home (root level)

    var filter = criteria

    .Field("level", "1")

    .And()

    .Field("nodeTypeAlias", "background")

    .Compile();

     

     

     

     

     

     

     

Please Sign in or register to post replies

Write your reply to:

Draft