I have a requirement that needs to get particular item along with all child item or some of the child item using template id from solr searchresultitem. Can anyone help how to achieve this?

1 Answer 1


So what you want to do is:

var parent = searchResultItem.GetItem();
var children = item.Children.Where(c => c.TemplateID == SOME_TEMPLATE_ID);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.