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

Forums / Developing with Sitefinity / Search for dynamic content in sitefinity?

Search for dynamic content in sitefinity?

6 posts, 0 answered
  1. James
    James avatar
    6 posts
    Registered:
    17 Mar 2009
    18 Mar 2009
    Link to this post
    hi, there,

    I'm trying to use search service in SiteFinity to search dynamic content which comes from another database. I use usercontrol to pull them out and integrate into sitefinity. It looks like the search service only works fine with whose data built-in Sitefinity already. Does anybody has any workaround about this?

    thanks,

    James
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    18 Mar 2009
    Link to this post
    Hello James,

    Thank you for using our services.

    What kind of content you are trying to search - IContent or url? If you are talking for urls, you can use the following  method public static void StartIndexing(string provider, string[] urls, bool appendToIndex)
    Additional information or code will help us to identify what the exact problem with services is.

    Greetings,
    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. James
    James avatar
    6 posts
    Registered:
    17 Mar 2009
    18 Mar 2009
    Link to this post
    hello, Ivan

    Thanks for the reply. Currently I don't have any specific code related to SiteFinity API. Like I said, I just implemented an UserControl which pulled some dynamic data out from our application database. After that, I created a Search Index in SiteFinity and started the indexing immidiately. Finally I put a Search Box on the master page and then define a Search Result page for it. Basically that's the whole process I have done to use search service. The result is if I put a Generic Content control and paste some data in it, whose data can be searched with no problem. But if it is an usercontrol to display dynamic content, that say an usercontrol to display products for customers, how can I make those products searchable by customers?

    Based on your comments, it seems I need implement some SiteFinity interfaces in my user control? Any example about this?

    thanks,

    James
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    23 Mar 2009
    Link to this post
    Hello James,

    Really depends on how you have implemented your products. Generally, our search displays everything that is returned from the query  as text/html or pages. This means if you enter "hello" in the search box it will return all items and pages that has "hello" somewhere.
    The better solution is creating your own SearchIndexer that will return results only for your products. Then you will be able to specify whether the match case will be display or the whole world. Search value can be passed through the query string.

    IndexCatalogue=Products&SearchQuery=MyProductNameHere 

    As for the Designer of the control, you can create a UI for the Basic tab of the user control( properties section cannot be changed currently.)

    Generally, your class should inherit from Telerik.Framework.Web.Design.ControlDesigner

    public class CustomDesigner : Telerik.Framework.Web.Design.ControlDesigner 


    More information can be found at http://www.sitefinitywatch.com/blog.aspx Let us know if there is anything else that we can do for you.

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  5. jagadish Gurram
    jagadish Gurram avatar
    4 posts
    Registered:
    06 Sep 2011
    06 Sep 2011
    Link to this post
    hi Ivan,

    I have the same functionality to search the content from my application data base & the results are combined with the sitefinity search service results. Have any idea on how to implement searching the data base content into sitefinity search service.
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    07 Sep 2011
    Link to this post
    Hello Jagadish,

    Could you explain a bit more about the functionality you are looking for? If you want to get the data from the database, you need a custom search index provider.  Here is a webinar about this

    http://www.sitefinitywatch.com/blog/09-06-25/Working_with_Sitefinity_Search.aspx


    Regards,
    Ivan Dimitrov
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Register for webinar
6 posts, 0 answered