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

Forums / Developing with Sitefinity / How to create an index to search an alternative database scheme ?

How to create an index to search an alternative database scheme ?

5 posts, 0 answered
  1. David Martinez
    David Martinez avatar
    13 posts
    Registered:
    24 May 2010
    29 Nov 2010
    Link to this post
    I have some tables which get product information (not a module), and I need to integrate search with a custom provider, which search the database from the search control, I have seen some links in which it is implemented a custom provider for a module, but that's not my case, is there any way to implement it?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    29 Nov 2010
    Link to this post
    Hello David,

    You need a custom search provider which you have to manually index or implement events that will be used to trigger an updated of your index.

    1. You need to implement a provider that inherits from IIndexingServiceClient
    2. You need IndexerInfo class that inherits from  IIndexerInfo

    You can take a look at this webinar.

    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
  3. David Martinez
    David Martinez avatar
    13 posts
    Registered:
    24 May 2010
    29 Nov 2010
    Link to this post
    thanks for your response, I reviewed the webinar and I made the example, my question is how to implement the IIndexingServiceClient? (some example for get data since database for ServiceClient) moreover, it is necessary for control of search responds to 2 indexes to display results
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    29 Nov 2010
    Link to this post
    Hi David,

    Here is  sample provider. In the methods where data object is expected you need to query your database and return some value.
    SearchResults control can work only with one index. If you want to return data from two indexes

    - inject the data in your custom index provider
    - custom search results control.

    Best wishes,
    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
  5. David Martinez
    David Martinez avatar
    13 posts
    Registered:
    24 May 2010
    29 Nov 2010
    Link to this post
    thanks, I'll start to work
Register for webinar
5 posts, 0 answered