I'm following this post on how to do a Keyword Query search in SP 2013. I'm getting the results items that I would expect. Now I need to display info about them.
The results are a mix of several different content types. They share some managed properties, but they also have some unique ones. The examples I've found show that I have to add each managed property I want to retrieve like so:
var keywordQuery = new Microsoft.SharePoint.Client.Search.Query.KeywordQuery(context);
var searchString = 'parentLink:"'+baseName+'"';
keywordQuery.set_queryText(searchString);
keywordQuery.set_sourceId(RESULTSOURCEGUID);
var properties = keywordQuery.get_selectProperties();
properties.add("Name");
properties.add("ContentType");
...and so on for each managed property name
But since I don't know what types will be in any given results how do I know which properties to request?
Is there a way to say "Give me all the managed properties associated with the returned item?"