title: SearchItemInfo is Obsolete. Deprecated in DNN 7.1
body: <p>I am trying to Implement the ISearchable on one of our modules.</p>
  
  <p>Visual Studio is indicating that SearchItemInfo is Obsolete and Deprecated in DNN 7.1.</p>
  
  <p>I found this article, but it does show the new alternative code which I must use and there is so many internal functions on GitHub.</p>
  
  <p><a href="https://www.dnnsoftware.com/answers/searchdatastorecontroller-is-obsolete-in-71" rel="nofollow noreferrer">https://www.dnnsoftware.com/answers/searchdatastorecontroller-is-obsolete-in-71</a></p>
  
  <pre><code> public SearchItemInfoCollection 
   GetSearchItems(DotNetNuke.Entities.Modules.ModuleInfo ModInfo)
  {
      SearchItemInfoCollection SearchItemCollection = new SearchItemInfoCollection();
  
      List&lt;TestModuleInfo&gt; colTestModules = GetTestModules(ModInfo.ModuleID);
  
      foreach (TestModuleInfo objTestModule in colTestModules)
      {
          SearchItemInfo SearchItem = new SearchItemInfo(ModInfo.ModuleTitle, objTestModule.Content, objTestModule.CreatedByUser, objTestModule.CreatedDate, ModInfo.ModuleID, objTestModule.ItemId.ToString(), objTestModule.Content, "ItemId=" + objTestModule.ItemId.ToString());
          SearchItemCollection.Add(SearchItem);
      }
  
      return SearchItemCollection;
  
      throw new System.NotImplementedException("The method or operation is not implemented.");
  }
  </code></pre>
  
  <p>I did try to write the following method and attached a breakpoint on GetModifiedSearchDocuments and Scheduled the Site Crawler to crawl the site, but it is never hit. Also, by implementing this code, will this show the checkbox on the module which will enable you to turn ISearchable on and off?</p>
  
  <pre><code>//uncomment the interfaces to add the support.
  public class FeatureController : ModuleSearchBase
  {
  
      public CommonDataDefinitions.Products.WebProductDetails ProductDetails { get; set; } = null;
  
  
      public override IList&lt;SearchDocument&gt; GetModifiedSearchDocuments(ModuleInfo moduleInfo, DateTime beginDateUtc)
      {
          var searchDocs = new List&lt;SearchDocument&gt;();
          var products = new List&lt;QuickProduct&gt;
          {
              new QuickProduct("CT4455", "Soundbar", "The soundbar is used for entertainment purposes." ),
              new QuickProduct("BD5333", "Laser Pointer", "For Presentations." )
          };
  
          foreach (var product in products)
          {
              var searchDoc = new SearchDocument
              {
                  IsActive = true,
                  CultureCode = moduleInfo.CultureCode,
                  Title = product.Title,
                  Description = product.Description,
                  Body = product.Description,
              };
              searchDocs.Add(searchDoc);
          }
          return searchDocs;
      }
  
  }
  
  public class QuickProduct
  {
      public string SKU { get; set; }
  
      public string Title{ get; set; }
  
      public string Description { get; set; }
  
      public QuickProduct(string SKU, string Title, string Description)
      {
          this.SKU = SKU;
          this.Title = Title;
          this.Description = Description;
      }
  }
  </code></pre>