Copied to clipboard

Flag this post as spam?

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


  • Paul Aikman 43 posts 97 karma points
    Nov 11, 2014 @ 15:27
    Paul Aikman
    0

    v6 API - Fastest way to query for property on all nodes?

    Hi,

    I'm wondering if there's a 'quick' way to look through the umbraco CMS via that v6 api for nodes (of any content type) with a specific property?

    E.g.

    - Publish Event Raised

    - // Retrieve all nodes with property type X that has value Y

    - Process retrieved nodes

    Cheers,

    Paul

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Nov 11, 2014 @ 15:55
    Stefan Kip
    0

    First thing you need to ask yourself; is looking in published content only enough? Or should non-published content be included too?

  • Paul Aikman 43 posts 97 karma points
    Nov 11, 2014 @ 15:57
    Paul Aikman
    0

    Ah, ok - it's non-published as well. 

    Cheers,

    Paul

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Nov 11, 2014 @ 15:59
    Stefan Kip
    0

    Hmm, that's tricky... Looking in published content is way faster than looking in all content.
    I'd use Examine/Lucene for this purpose...

    Some stuff to read:

  • Charles Afford 1163 posts 1709 karma points
    Nov 13, 2014 @ 23:16
    Charles Afford
    0

    Yea Examine search on an index is going to be the fastest way :)

Please Sign in or register to post replies

Write your reply to:

Draft