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

Forum Search

16 posts, 0 answered
  1. Shawn
    Shawn avatar
    10 posts
    Registered:
    09 Jan 2009
    10 Mar 2009
    Link to this post
    Hey Guys,

    I've got a Search question for you.  We are running Sitefinity 3.2sp2h1 and need Forum searching capabilities.  I can't seem to find them.  Am I just missing it or is that something that requires a later version of Sitefinity?

    Currently we cannot upgrade, so I was looking for any information.  Or if you could provide me with a search provider from a later version of Sitefinity that will search Forums. 

    Thanks for your help once again!

    --Shawn
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    13 Mar 2009
    Link to this post
    Hi Shawn,

    ForumIndex is not implemented for versions 3.2. However, I am sending you this implementation for your version. Get the files from attached archive and extract them to App_Code folder. Then, add the following line in your web.config file under <search defaultProvider="Search"><indexClients> node .

    <add name="ForumIndex" type="Telerik.Forums.Search.ForumIndexProvider, App_Code" settingsControl="Telerik.Forums.Search.ForumSettingsControl, App_Code" viewSettingsControl="Telerik.Forums.Search.ForumViewSettingsControl, App_Code" description="Provides indexing services for forums."/> 
     

    I hope this helps.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Shawn
    Shawn avatar
    10 posts
    Registered:
    09 Jan 2009
    13 Mar 2009
    Link to this post
    Hi Ivan,

    Your solution works great.  Thanks for your help again!

    --Shawn
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    13 Mar 2009
    Link to this post
    Hello Shawn,

    Thanks for getting back. It will be good if you are able to upgrade to the latest version where we have fixed a lot of bugs and we have added a new functionallity to some parts of the CMS.

    Let us know if there is anything else that we can do for you.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. Hung
    Hung avatar
    1 posts
    Registered:
    17 Sep 2007
    13 May 2009
    Link to this post
    I read and did something as your guide, but I have a problem about Result page.
    The link of result page not link to my forum.aspx page. I added forum.aspx to input text at forum index field but I still link to my current searchresult.aspx page.
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    14 May 2009
    Link to this post
    Hi Hung,

    When you create a forum index you should set a page where you have already added Single Thread or Forum control. Then, you should set Search results page for Search box control. This page should have Search results control on it. This sample implementation works as the other indexes you have by default.

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  7. UI Crew
    UI Crew avatar
    99 posts
    Registered:
    24 Sep 2012
    16 May 2009
    Link to this post
    Hi Ivan,

    Is forum search available in 3.6? Didn't seem to see it in the blank project.

    Cheers,

    Seth
  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    16 May 2009
    Link to this post
    Hi Seth Cleaver,

    Thank you for using our services.

    There is no implementation in 3.6 for forums search provider. The sample working code was provided in the previous posts above. You can download the archive and implement additional logic or extend it.

    Regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  9. David
    David avatar
    50 posts
    Registered:
    14 Jan 2009
    25 Aug 2009
    Link to this post
    Hello,

    I have attempted to implement this feature in 3.6, and after following the instructions in previous posts, I now get this error when I try to view any page on the site:

    Server Error in '/Application' Application.

    Compilation Error

    Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

    Compiler Error Message: CS0535: 'Telerik.Forums.Search.ForumIndexerInfo' does not implement interface member 'Telerik.Framework.Search.IIndexerInfo.ResolveIndexPath()'

    Source Error:


    Line 10:     /// Summary description for ForumIndexerInfo
    Line 11: /// </summary>
    Line 12: public class ForumIndexerInfo : IIndexerInfo
    Line 13: {
    Line 14: public ForumIndexerInfo(Guid postID, string url)


    Thank you for your support,

    David
  10. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    28 Aug 2009
    Link to this post
    Hello David,

    Please add the following interface member in the ForumIndexerInfo:

     public class ForumIndexerInfo : IIndexerInfo 
        { 
            public ForumIndexerInfo(Guid postID, string url) 
            { 
                this.postID = postID; 
                this.url = url; 
            } 
            #region IIndexerInfo Members 
     
            public string ResolveIndexPath() 
            { 
                return this.Path; 
            } 
    ... 

    This should do the trick.

    Kind regards,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  11. David
    David avatar
    50 posts
    Registered:
    14 Jan 2009
    28 Aug 2009
    Link to this post
    As always, Telerik's on top of it's game!

    Many thanks
  12. WhiteShark
    WhiteShark avatar
    10 posts
    Registered:
    26 Sep 2012
    05 Oct 2010
    Link to this post
    Hi Ivan,
    I downloaded and installed the codes. The admin is working but not front-end. I have an error when search. Can you please tell me what is wrong with it?

    thank you.

     

    Server Error in '/' Application.

    Value cannot be null.
    Parameter name: virtualPath

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.ArgumentNullException: Value cannot be null.
    Parameter name: virtualPath

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [ArgumentNullException: Value cannot be null.
    Parameter name: virtualPath]
       System.Web.VirtualPath.Create(String virtualPath, VirtualPathOptions options) +11248562
       System.Web.VirtualPathUtility.IsAbsolute(String virtualPath) +15
       Telerik.Web.UrlPath.ResolveUrl(String url, Boolean absolute, String scheme, String host, Int32 port) +256
       Telerik.Web.UrlPath.ResolveUrl(String url) +25
       Telerik.Search.Engine.SearchManager.ResolveUrl(String p) +123
       Telerik.Search.Engine.SearchManager.Search(String searchQuery, String indexName, Int32 startIndex, Int32 max, String mode, Boolean escapeChars, Int32& totalItems) +610
       Telerik.Search.WebControls.SearchResult.CreateChildControls() +568
       System.Web.UI.Control.EnsureChildControls() +146
       System.Web.UI.Control.PreRenderRecursiveInternal() +61
       System.Web.UI.Control.PreRenderRecursiveInternal() +224
       System.Web.UI.Control.PreRenderRecursiveInternal() +224
       System.Web.UI.Control.PreRenderRecursiveInternal() +224
       System.Web.UI.Control.PreRenderRecursiveInternal() +224
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3394
    
  13. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    05 Oct 2010
    Link to this post
    Hi WhiteShark,

    The ResultItem url is not valid and cannot be resolved. You are passing a not valid path for url parameter of ForumIndexerInfo(Guid postID, string url). Inside GetContentToIndex method the forumUrl you use is not valid - new ForumIndexerInfo(post.ID, forumUrl);

    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  14. WhiteShark
    WhiteShark avatar
    10 posts
    Registered:
    26 Sep 2012
    06 Oct 2010
    Link to this post
    Hi Ivan,
    Can you show me how to correct it?
    thank you
  15. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    07 Oct 2010
    Link to this post
    Hello WhiteShark,

    It looks like you have entered some value for  forumUrl  which is not a valid relative path. The code works file at my end. The problem comes from the singleThreadPage entered through ForumSettingsControl

    singleThreadPage = settings[FORUM_SETTING_SINGLE_THREAD_PAGE];


    If the problem persists for you try attaching the VS debugger inside Initialize and GetContentToIndex method inside the provider to see what actually is passed as url.

    You could also subscribe to ItemDataBound event of SearchResults control ( the template is located inside Sitefinity/ContorolTemplates/Search folder) and get the DataItem which has a property Url which you can observe.

    All the best,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  16. WhiteShark
    WhiteShark avatar
    10 posts
    Registered:
    26 Sep 2012
    07 Oct 2010
    Link to this post
    Hi Ivan,
    I went different route and it worked. I am going to view your file later today for future references

    Thank you very much,
Register for webinar
16 posts, 0 answered