Is it possible to increase the number of hits returned from the search inside EPiServer Edit Mode? I'm talking about the search box above the page tree. I'm getting 10 hits there now, but I would like it to return some more.
-- Tarjei Olsen
If you're referring to the shell search, I believe it is hard coded to return only the first 10 - http://world.episerver.com/Forum/Developer-forum/Developer-to-developer/Thread-Container/2012/5/EpiServer-internal-search/
Ok, it isn't configurable, but I can code my way around it:
public class InternalPageSearchProvider : PageSearchProvider
//enourmous constructor signature passing everything along to base()
//override Category to set a new name
public override IEnumerable<SearchResult> Search(Query query)
query.MaxResults = 1337;
This is picked up as a provider, and I can drag/drop it on top of the provider list in the Admin UI. Bam! I have more than 10 results when doing internal/shell searches.