SaaS CMS has officially launched! Learn more now.

Unified Search - Histogram facet on 'Created' property


I want to create a histogramfacet based on when the page or file was created. Making a histogram facet with the published date was easy, but the created date is not part of ISearchContent.

Jan 27, 2014 18:14

I think you can do something like this:


            var result =
             .HistogramFacetFor(x => ((IChangeTrackable) x).Created, DateInterval.Year)
             var facets = result.HistogramFacetFor<IChangeTrackable>(x => x.Created);


Jan 30, 2014 10:51

Works like a charm. Thanks!

Feb 04, 2014 16:51
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.