Copied to clipboard

Flag this post as spam?

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


  • Ifrahim Rasool 17 posts 71 karma points
    Oct 03, 2019 @ 15:33
    Ifrahim Rasool
    0

    How can I search for nodes within a specific node using Examine Search?

    Hi fellas,

    I have just started working on a few project which is to be built in v8. Shocking for me, a lot of things are gone and now I am stuck with mainly search feature.

    I am trying to search for a specific document type within a specific parent node. Like usual query, I have created a query but it fails as I expect it take path as one value.

       var query = searcher.CreateQuery("content").Field("path", categoryNodeId.);
    

    I read a few articles where they are saying that wildcards cannot be used here.

    Can anyone help me please in completing this query?

    Thanks a lot

  • Mila Pandurska 51 posts 257 karma points
    Oct 04, 2019 @ 08:16
    Mila Pandurska
    0

    Hi Ifrahim, Resently I had similar requirement and I used the following query:

     var query = searcher.CreateQuery("content").NodeTypeAlias("myDocType").And().ParentId(ParentId);
    

    Mila

  • Saif Obeidat 46 posts 170 karma points
    Oct 05, 2019 @ 13:50
Please Sign in or register to post replies

Write your reply to:

Draft