More in this section

Forums / Developing with Sitefinity / IIndexerInfo ItemID question

IIndexerInfo ItemID question

3 posts, 0 answered
  1. martin Sahuc
    martin Sahuc avatar
    3 posts
    Registered:
    26 Apr 2010
    20 May 2010
    Link to this post
    Hello,

    I need to add a custom indexprovider in sitefinity.
    It will feed the item with a xml file which items don't use GUID.
    I don't have a stable GUID to add to my custom IndexerInfo
    My questions are :
    What is the utility of this GUID ? Can i avoid it or use a different one for the same item between different indexation ?
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    21 May 2010
    Link to this post
    Hello martin Sahuc,

    The Guid serves as an unique identifier of each item. They are generated using new Guid(). There is no chance that you generate identical guid so this is why it is used for identifiers. When you create a custom indexer info the ID field is declared in the interface that you are going to use to develop your class. You could just declare it however whenever you index items in your indexer you will be filling this field with an empty Guid. Then sine you are feeding the data from an XML file I guess that you will already have your logic for getting items to be indexed and retrieving them from the indexing client later on.

    This webinar will help you build your indexing client: Working with Sitefinity Search. As you can see there the sample is also returning Guid.Empty for the item ID.

    Regards,
    Radoslav Georgiev
    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. martin Sahuc
    martin Sahuc avatar
    3 posts
    Registered:
    26 Apr 2010
    21 May 2010
    Link to this post
    The answer i was looking for ! thanks a lot.
Register for webinar
3 posts, 0 answered