Hi,
I'm trying to use the results of a Query outside of the QueryPublisher app.
I got this far, but I can't figure out how to retrieve the values I need.
Any ideas on how I can get the fields from the query result?
@{ var queryService = Dynamicweb.Extensibility.ServiceLocator.Current?.GetInstance<IQueryService>(); if (queryService != null) { var iQuery = queryService.LoadQuery("Content", "Custom content search.query"); var composers = queryService.Query(iQuery, new QuerySettings()); foreach (var composer in composers.QueryResult) { <h1>@composer</h1> } } }
Thank you