Copied to clipboard

Flag this post as spam?

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


  • Ruder Partap Singh 28 posts 142 karma points
    Oct 25, 2022 @ 17:37
    Ruder Partap Singh
    1

    How to search by multi node tree picker values in Examine Umbraco v10

    Hi

    How to implement search in umbraco 10 using examine with multinode tree picker value as it store the path in instead of node name

    Can someone help with any documentation or code snippet please

    Thanks

  • Ruder Partap Singh 28 posts 142 karma points
    Nov 03, 2022 @ 06:53
    Ruder Partap Singh
    100

    Hi

    This code help me to index the mutlinode tree picker for examine search

    https://www.umbrajobs.com/blog/posts/2021/june/umbraco-9-examine-creating-a-custom-index/

    only need to change

    var updatedValues = e.ValueSet.Values.ToDictionary(x => x.Key, x => x.Value.ToList());
    updatedValues.Add("YOURKEY",new List<object> { "YOURVALUE" });
    e.SetValues(updatedValues.ToDictionary(x => x.Key, x => (IEnumerable<object>)x.Value));
    

    also this link help

    https://www.jondjones.com/learn-umbraco-cms/umbraco-9-tutorials/getting-started-with-umbraco-9/how-to-build-a-search-page-in-umbraco-v9/

    and

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

    I hope this help anyone

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies