Copied to clipboard

Flag this post as spam?

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


  • Saif Obeidat 79 posts 296 karma points
    Apr 02, 2019 @ 09:14
    Saif Obeidat
    0

    How to use Examine search for a particular parent

    Hi,

    I trying to do a simple search using Examine search as per Umbraco documentation:

    @if (!string.IsNullOrEmpty(Request.QueryString["query"]))    
     {
    <ul>
        @foreach (var result in Umbraco.TypedSearch(Request.QueryString["query"]))
        {
            <li>
                <a href="@result.Url">@result.Name</a>
            </li>
        }
    </ul>
    }
    

    this code works fine, but it searches the entire website, and what i want is to search for a specific parent .

    How can this be done?

    Thanks

Please Sign in or register to post replies

Write your reply to:

Draft