More in this section

Forums / Bugs & Issues / Discovery: Search doesn't work on Dynamic Content if the dynamic module contains a field named "Category"

Discovery: Search doesn't work on Dynamic Content if the dynamic module contains a field named "Category"

2 posts, 0 answered
  1. J
    J avatar
    10 posts
    18 May 2015
    05 Nov 2015
    Link to this post

    So, this may be a bug or an undocumented feature but I felt like I should share my discovery. I've been having getting search to work for my custom modules. I discovered today that the culprit was a field by the name of "Category". Removing this field allowed search to work. Renaming also worked. To confirm, I made a new test module without the field and search worked. Upon adding a "Category" field, search was broken. 

    Have fun with this one guys! :)

  2. Mihir Desai
    Mihir Desai avatar
    6 posts
    23 May 2006
    05 Nov 2015
    Link to this post

    Yes, me too faced the same issue when we have a field name category in content type. Now its in production and we cannot change it.

    Got the following error

    TimeStamp : 11/5/2015 11:26:40 AM
    FullName : Telerik.Sitefinity.Utilities, Version=8.1.5810.0, Culture=neutral, PublicKeyToken=b28c218413bdf563
    AppDomainName : e56a379a-1-130911959133283627
    ThreadIdentity :

    Requested URL : http://localhost:5751/Sitefinity/Services/Publishing/PublishingService.svc/reindex/c7b9e0d8-ae7c-61bb-adf3-ff0000bfbcee/
        Inner Exception
        Type : System.InvalidCastException, mscorlib, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089
        Message : Unable to cast object of type 'Telerik.Sitefinity.Descriptors.RelatedDataPropertyDescriptor' to type 'Telerik.Sitefinity.TaxonomyPropertyDescriptor'.
        Source : Telerik.Sitefinity
        Help link :
        Data : System.Collections.ListDictionaryInternal
        TargetSite : Void AddItemCategories(Telerik.Sitefinity.Publishing.WrapperObject, Telerik.Sitefinity.Model.IDataItem)
        HResult : -2147467262
        Stack Trace :    at Telerik.Sitefinity.Publishing.NewImplementation.PublishingUtilities.AddItemCategories(WrapperObject item, IDataItem contentItem)
           at Telerik.Sitefinity.DynamicModules.PublishingSystem.DynamicContentInboundPipe.SetProperties(WrapperObject wrapperObject, DynamicContent contentItem)
           at Telerik.Sitefinity.DynamicModules.PublishingSystem.DynamicContentInboundPipe.PushData(IList`1 items)

2 posts, 0 answered