Sometimes clients come up with crazy requests “I can not go back to first page, this pagination is not good enough” – but this one was reasonable and SharePoint 2013 search is so easy customizable, lets take it as an exercise!
Everything is a Display Template
As the caption says, you can change almost every design aspect in SharePoint 2013 Search by changing a html file (or a .js file if you are on Foundation) – this includes the general rendering of the search results and with it the pagination.
So let’s try to change it to the desired behavior – of course I know that you can remove the #s or click on the search loop again.
I change a system file here – do that only if you know what you are doing and document your changes!
Open the file (MasterPage gallery > Display Templates > Search) and go to line 248. Then paste the following in – or download the whole template: Control_SearchResults.
Today it was time to update my SharePoint 2013 installation from March PU 2013 to August 2013 CU – mostly because the Search Schema changed under the hood and I wanted to try something out for the awesome Search Query Tool.
Wow, 1.8GB patch – that is huge! Compared to the RTM version of SharePoint 2013 with 2.4GB they rewrote 75% – or the patching strategy is not that optimal.
Its time for a new baseline so patches can be smaller again. Lets see what happens after the SPC.
For the patching part I always take the script from the article
“Why SharePoint 2013 Cumulative Update takes 5 hours to install?” – if you have not read it, go for it. This time something went bad, maybe because I started the script from ISE or something like that – it could not start the patch process so I did it myself. Took around 30 Minutes on my DEV VM – reboot and we should be ready, right?
“Internet Information Service not installed”
After the patching you have to start the Config Wizard. I was a little surprised as it responds with a nice error – I even tried the PowerShell command in case there is a difference, but no:
What? IIS not installed anymore? Something must be broken with the Patch – let’s blame Todd for it:
I patch my SharePoint 2013 to August CU – if that does not work I blame @ToddKlindt 🙂
But then I tried to reproduce my steps – of course it must be an user error. After reading the patch script (reading things sometimes helps), I noticed that the script disables the IIS Admin service…
SharePoint does not like that – set it back to Automatic start and start the service.
Starting the site is a good idea, too:
And then start the config wizard again:
And wait until every database is updated:
Search “Paused for:External request”
Then I tried do do a Search – without a success. I went to the Search Service Application page and saw the status: “Paused for:External request” – that means something paused the Service Application (maybe, just maybe someone tried to patch):
and we should resume it – 3 lines of PowerShell:
Patching can be tough – but when you protocol what you do or can at least reproduce what you have done its pretty much straight forward. I do not blame the patch script here, I obviously did something wrong – but the error message is really misleading isn’t it?
The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.