I have a working search index that returns 10 results currently. The only thing is that it only returns a limited amount of information. In debug i can see the path to the page the content was on but can't see a way of accessing this in code.
I'd like to be able to do something like the following but with the data being extracted out and bound to an object to serve up to my api: foreach (SearchResultItem@BaseInfo@ searchResultItem in searchResult.Items)
{
var searchResultModel = new SearchResultItemModel(searchResultItem.Fields);
var link = searchResultModel.pagelink;//how do i get this?
var pageName = searchResultModel.pageName;//how do i get this?
var title = searchResultModel.title;//how do i get this?
var content = searchResultModel.content;//how do i get this?
itemModels.Add(searchResultModel);
};
↧