+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Search results - error after upgrade

Search results - error after upgrade

5 posts, 0 answered
  1. Dave
    Dave avatar
    6 posts
    Registered:
    02 Feb 2010
    28 Nov 2012
    Link to this post
    Hi, After upgrading my site to v5.2 3700 my search results items have incorrect URLs. Links to result page are displaying links like:
    http://domain.com/SfCtrlPresentation/%5Bf669d9a7-009d-4d83-ddaa-000000000002%5Df0326764-96c7-4331-8c92-cb4a377099d3 which results in a 404 instead of domain.com/about-us.

    I've deleted and re-created the search indexes, this has made no difference. 

    Thanks in advance.
  2. Stanislav Velikov
    Stanislav Velikov avatar
    1113 posts
    Registered:
    06 Dec 2016
    04 Dec 2012
    Link to this post
    Hi,

    There is a problem with the search results widget since in Sitefinity 5 the assembly where the search implementation resides was changed. To fix the problem go to Design->Widget Templates and find all search related templates. If there are more than two templates delete two of them preferably those who have
    Assembly="Telerik.Sitefinity" as referenced assembly in their template.

    The first error is caused because of having more than one templates for search results with the problematic assembly.

    Second make sure the templates for search results have markup like:
    <%@ Control Language="C#" %>
    <%@ Register Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Web.UI" TagPrefix="sitefinity" %>
    <%@ Register Assembly="Telerik.Sitefinity.Search.Impl" Namespace="Telerik.Sitefinity.Services.Search.Web.UI.Public" TagPrefix="sfSearch" %>
       
       
    <sfSearch:SearchBox ID="topSearchBox" runat="server" />
       
    <sitefinity:SitefinityLabel id="resultsStats" runat="server" WrapperTagName="p" CssClass="sfsearchResultStatistics" Text="<%$Resources:SearchResources, SearchResultsStatusMessage %>" />
    <asp:Repeater ID="resultsList" runat="server">
    <HeaderTemplate>
    <ol class="sfsearchResultsWrp sfsearchReultTitlesOnly">
    </HeaderTemplate>
    <ItemTemplate>
    <li class="sfsearchResultTitle"><a href='<%# Eval("Link")%>'><%# Eval("Title") %></a></li>
    </ItemTemplate>
    <FooterTemplate>
    </ol>
    </FooterTemplate>
    </asp:Repeater>
    <sitefinity:Pager ID="pager" runat="server" />
       
    <sfSearch:SearchBox ID="bottomSearchBox" runat="server" />
    and for the template for Title, URL, Excerpt:
    <%@ Control Language="C#" %>
    <%@ Register Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Web.UI" TagPrefix="sitefinity" %>
    <%@ Register Assembly="Telerik.Sitefinity.Search.Impl" Namespace="Telerik.Sitefinity.Services.Search.Web.UI.Public" TagPrefix="sfSearch" %>
       
    <sfSearch:SearchBox ID="topSearchBox" runat="server" />
       
    <sitefinity:SitefinityLabel id="resultsStats" runat="server" WrapperTagName="p" CssClass="sfsearchResultStatistics" Text="<%$Resources:SearchResources, SearchResultsStatusMessage %>" />
       
    <asp:Repeater ID="resultsList" runat="server">
    <HeaderTemplate>
    <dl class="sfsearchResultsWrp sfsearchReultTitleSnippetUrl">
    </HeaderTemplate>
    <ItemTemplate>
    <dt class="sfsearchResultTitle"><a runat="server" href='<%# Eval("Link")%>'><%# Eval("Title") %></a></dt>
    <dd class="sfsearchResultSnippet"><%# Eval("Summary")%></dd>
    <dd class="sfsearchResultUrl"><a runat="server" href='<%# Eval("Link")%>'><%# Eval("Link")%></a></dd>
    <dd class="sfsearchResultHighLighter"><%# Eval("HighLighterResult")%></dd>
    </ItemTemplate>
    <FooterTemplate>
    </dl>
    </FooterTemplate>
    </asp:Repeater>
    <sitefinity:Pager ID="pager" runat="server" />
    <sfSearch:SearchBox ID="bottomSearchBox" runat="server" />


    Greetings,
    Stanislav Velikov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Markus
    Markus avatar
    2763 posts
    Registered:
    25 Nov 2005
    06 Mar 2015 in reply to Stanislav Velikov
    Link to this post

    Does Telerik.Sitefinity.Services.Search.Web still exist?

     Markus

  4. Svetoslav Manchev
    Svetoslav Manchev avatar
    735 posts
    Registered:
    06 Dec 2016
    11 Mar 2015
    Link to this post
    Hello Markus,

    What is the issue you have? Could you please provide more information about it?

    Note that in 7.3 there is API changes in search module. More information is available here.

    Regards,
    Svetoslav Manchev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  5. Markus
    Markus avatar
    2763 posts
    Registered:
    25 Nov 2005
    11 Mar 2015 in reply to Svetoslav Manchev
    Link to this post

    http://www.sitefinity.com/developer-network/forums/bugs-issues-/telerik-sitefinity-search-impl-error-going-from-7-1-to-7-3

    Markus

5 posts, 0 answered