Copied to clipboard

Flag this post as spam?

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


  • Paul de Quant 403 posts 1518 karma points
    Jul 23, 2019 @ 09:51
    Paul de Quant
    0

    Can anyone recommend an external search provider for Umbraco

    Hi,

    Can anyone recommend a search provider that can easily be integrated into Umbraco? Something that can crawl your website, give you some control of the results and provides helpful analytics. We've used a service called Funnelback but are on the look out for alternatives.

    Thanks

    Paul

  • AddWeb Solution Pvt. Ltd 109 posts 354 karma points
    Jan 08, 2021 @ 08:21
    AddWeb Solution Pvt. Ltd
    0

    Hello,

    You can create your own search as well. To create search, create a search document type(user login/settings/document types/doc type without template)

    (Add this in your created page)

    <form action="/search/" method="GET">
    <input type="text" placeholder="Search..." name="query">
    <button>Search</button>
    </form>
    
    @{
    var searchQuery = Request.QueryString["query"];
    
    if (!string.IsNullOrEmpty(searchQuery))
    {
    <div class="searchresults">
    <p>Your search results for <strong>@searchQuery</strong></p>
    <ul>
    @foreach (var result in Umbraco.Search(searchQuery))
    
        {
        <li>
        <a href="@result.Url">@result.Name</a>
        </li>
        }
        </ul>
        </div>
        }
    

    }

    Now associate template with doc type

    Allow search page to be created under home page

Please Sign in or register to post replies

Write your reply to:

Draft