Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Does the NestedContent already have a method or helper to add the values to the examine index correctly (without json stuff)?
Thanks for your feedback.
As far as I am aware it does not you would have to using Examine gatheringnode data event and inject in yourself without json.
As Ismail says, there's nothing built-in and you would have to hook into Examine's GatheringNodeData event.
For a code example, here is Matt Brailsford's snippet...
Hope this helps.
oops, just noticed that snippet has an extension method, DetectIsJson().
You can find that here...
Hi Lele, Ismael,
I got this working in combination with the models builder.
var content = string.Empty;
var myNestedProperty = MyContentModel.GetModelPropertyType(x => x.NestedContentProperty);
var key =
var items = myNestedProperty.ConvertDataToSource(args.Fields[key], false) as List<IPublishedContent>;
if (items != null)
foreach (var item in items)
content += " " + item.GetProperty("title").DataValue;
content += " " + item.GetProperty("description").DataValue;
Maybe this post can help you out as well :
It's about updating archetype with the ContentService. But there maybe some usefull code as well.
Awesome thanks! Nice examples!
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted