Created
February 27, 2016 18:59
-
-
Save kdhollow/b7ccb40d324269cc21be to your computer and use it in GitHub Desktop.
Setting up top and search text
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// By default, we want to get back no results, but we want to get facet and count information for the entire result set | |
int? top = DefaultTopCount; | |
var searchText = model.SearchText; | |
if (string.IsNullOrEmpty(searchText) && string.IsNullOrEmpty(model.Filter)) | |
{ | |
searchText = "*"; | |
top = 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment