Copied to clipboard

Flag this post as spam?

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


  • Simon 691 posts 1066 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 372 posts 906 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 859 posts 3821 karma points MVP 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 Hansen 96 posts 299 karma points
    Oct 06, 2017 @ 11:14
    Thomas Hansen
    0

    Did you find a solution for your problem ?

Please Sign in or register to post replies

Write your reply to:

Draft