Copied to clipboard

Flag this post as spam?

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


  • kannandesikan 48 posts 68 karma points
    May 07, 2014 @ 11:29
    kannandesikan
    0

    using node id searching results in examine

    we try to get the detail description using node id  using examine search,actually the content we are searching related to multinode picker from that we want to map and display the record

    my questions is that passing node id in the url seraching details value using examine search and display the record

     

     

     

  • MK 429 posts 906 karma points
    May 09, 2014 @ 13:29
    MK
    0

    Hi Kannandesikan,

    I'm not so sure what you are trying to do but when I need to find a node via Examine I would add a query to my search that will query the relevant property (Field).

    You can find all the relevant Examine info here:

    http://umbraco.com/follow-us/blog-archive/2011/9/16/examining-examine.aspx

    Look for:

    var query = searchCriteria.Field("nodeName",yourValye).Compile();
    var searchResults = Searcher.Search(query);

    You can pass any value to the query.
    With regards to Multinode Tree Picker, examine will index it as a long string without spaces so what I do is on the
    index event, I will reindex the property with spaces in between each id's (e.g. 1234 5678 etc.)
    this way you can split it to get an arry of ids.
    Hope it helps,
    Moshe
Please Sign in or register to post replies

Write your reply to:

Draft