Skip to content

Commit

Permalink
Optimize fetching cp/mp list
Browse files Browse the repository at this point in the history
  • Loading branch information
wobba committed Jan 11, 2022
1 parent b21d481 commit 9e92477
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1938,6 +1938,8 @@ private async void OpenPreviewAllProperties(object sender, MouseButtonEventArgs

sqr.QueryText = _searchQueryRequest.QueryText;
sqr.HiddenConstraints = string.Format("WorkId:\"{0}\"", resultItem[workIdKey]);
sqr.SortList = "[docid]:ascending";
sqr.RowLimit = 1;
sqr.QueryTemplate = _searchQueryRequest.QueryTemplate;
sqr.SourceId = _searchQueryRequest.SourceId;
sqr.ResultsUrl = _searchQueryRequest.ResultsUrl;
Expand All @@ -1951,7 +1953,7 @@ private async void OpenPreviewAllProperties(object sender, MouseButtonEventArgs
if (propertyType == PropertyType.Managed)
{
//this is the magic ingredient to get all the properties back
sqr.Refiners = "ManagedProperties(filter=5000/0/*)";
sqr.Refiners = "ManagedProperties(filter=5000/0/*)";
}
else
{
Expand Down

0 comments on commit 9e92477

Please sign in to comment.