Copied to clipboard

Flag this post as spam?

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


  • Tom 713 posts 954 karma points
    Feb 26, 2010 @ 02:44
    Tom
    0

    Most Efficient Way Of Converting UmbracoExamine SearchResult Object To Nodes

    Hi Guys,

    I want to convert my umbracoexamine IEnumerable<SearchResult> to an IEnumerable<Node> but am unsure of the most efficient way of doing so.. ie

     

    results.Select(r => new Node(r.ID))??

     

    im just wondering if new Node hits the db or if it pulls it from the xml?

    Cheers,

    Tom

  • Stephan Lonntorp 195 posts 212 karma points
    Feb 26, 2010 @ 07:03
    Stephan Lonntorp
    0

    The Node API is the published XML, the Document API hits the DB. So you should be fine.

Please Sign in or register to post replies

Write your reply to:

Draft