Copied to clipboard

Flag this post as spam?

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


  • Nadine Fisch 159 posts 428 karma points
    Dec 20, 2017 @ 13:08
    Nadine Fisch
    0

    ExamineManger - Search Node by Property

    Hi,

    i need a query to select nodes by a specific NodeTypeAlias and PropertyValue. If I search only for the NodeTypeAlias, I got the correct result list.

    Next criteria is the checkbox-Property 'isPodcast'. But I doesnt receive any results. Do you have a good solution for me?

         var query = ExamineManager.Instance.CreateSearchCriteria()
                    .NodeTypeAlias("Thema")
                    .And()
                    .Field("isPodcast", "true")
                    .Compile();
    

    TIA,

    Cheers, Nadine

  • Alex Brown 129 posts 618 karma points
    Dec 21, 2017 @ 08:27
    Alex Brown
    0

    Try changing "true" to "1", does that work?

  • Nadine Fisch 159 posts 428 karma points
    Dec 21, 2017 @ 12:08
    Nadine Fisch
    0

    No, it doesn't work.

  • Alex Brown 129 posts 618 karma points
    Dec 21, 2017 @ 15:43
    Alex Brown
    0

    Have you tried seeing what the "isPodcast" value looks like in the index? Using the Examine tools in the CMS.

    Go to Developer > Examine Management > ExternalSearcher (I assume you're using this index?) > Search Tools.

    Then type in "Thema*"

    Check what values are next to your "isPodcast" fields in the results.

  • Nadine Fisch 159 posts 428 karma points
    Dec 22, 2017 @ 08:35
    Nadine Fisch
    0

    Hi, i dont find the examine Manager in the CMS. I am completly new to this topic. Anyway, I deleted the checkbox and replaced the field via a tag.

    This solution works great. I search the podcast-publishedContents by following statement

    var publishedContent = Umbraco.TagQuery.GetContentByTag("Podcast");
    
  • 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