Copied to clipboard

Flag this post as spam?

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


  • Simon 692 posts 1068 karma points
    Jun 06, 2016 @ 15:25
    Simon
    0

    Nupickers - Searching using Umbraco Examine

    Hi Guys,

    Does anybody know how I can query using the Umbraco Examine for nuPickers fields, using Lucene TypeheadList?

    I have a Real Estate node and through nuPickers, I will select the property type and the location.

    Now, how can I query and convert the below for Umbraco Examine please?

    nodes = rootNode.Descendants(ConstantNames.PropertyDocumentAliasName).Where(x => propertyTypesIds.Contains(x.GetPropertyValue<Picker>(ConstantNames.PropertyTypeAliasName).PickedKeys.First()) && localitiesIds.Contains(x.GetPropertyValue<Picker>(ConstantNames.PropertyLocalityAliasName).PickedKeys.First()));
    

    Thank you and appreciate any help.

    Kind Regards

  • Manish 373 posts 932 karma points
    Feb 20, 2017 @ 11:14
    Manish
    0

    Hi Simon

    I am facing the same issue are you able to achieve this?

    Pleas help on this

    Thanks

  • Hendy Racher 863 posts 3849 karma points MVP 2x admin c-trib
    Apr 11, 2017 @ 07:08
    Hendy Racher
    0

    Hi, just formatting the code to make it easer to read...

    nodes = rootNode
            .Descendants(ConstantNames.PropertyDocumentAliasName)
            .Where(
                x => propertyTypesIds.Contains(x.GetPropertyValue<Picker>(ConstantNames.PropertyTypeAliasName).PickedKeys.First()) 
                && localitiesIds.Contains(x.GetPropertyValue<Picker>(ConstantNames.PropertyLocalityAliasName).PickedKeys.First()));
    
  • Thomas 319 posts 606 karma points c-trib
    Oct 06, 2017 @ 11:14
    Thomas
    0

    Did you find a solution for your problem ?

  • 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