Copied to clipboard

Flag this post as spam?

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


  • nickornotto 403 posts 907 karma points
    Sep 09, 2022 @ 19:44
    nickornotto
    0

    How to search Examine by Udi (content picker) property

    I am trying to query Examine by a content picker value - since it is an Udi then I need to provide Udi to the query. It looks like examine is not supporting it and splitting Udi value to bits by : and

    This is the query I get

    Category: null, LuceneQuery: {+(+__IndexType:content +__NodeTypeAlias:product) +(categoryId:umb categoryId:document categoryId:671cf7620759444fa54ccaa2f23b8d2a)}
    

    And this is how I add the property to the query:

    searchQuery = searchQuery.And().Field("categoryId", "umb://document/671cf7620759444fa54ccaa2f23b8d2a");
    

    Anyone knows how to lookup Examine index by a property that contains Udi?

    I am using version 10.0.0 but I saw from other posts that the same thing is happening in Umbraco 8.

    Not sure what happened to Examine but it worked well with Udi in version 7.15.3. we have the old site version working well.

  • Paul Seal 524 posts 2889 karma points MVP 7x c-trib
    Sep 20, 2022 @ 20:07
    Paul Seal
    1

    Hi

    This blog post I did for v8 should help you.

    It should be fairly similar for v10 but i haven't tried.

    https://codeshare.co.uk/blog/how-to-search-by-picked-multi-node-tree-picker-values-in-umbraco-v8/

    Kind regards

    Paul Seal

  • Ruder Partap Singh 28 posts 142 karma points
    Nov 01, 2022 @ 20:22
    Ruder Partap Singh
    0

    Hi Paul

    Do you have any code snippet that help to implement searching multi node picker in umbraco 10

    Thanks

Please Sign in or register to post replies

Write your reply to:

Draft