My requirement was to delete Conversations vertical from the default SharePoint search verticals(Everything, People, Conversations, This site) and Default vertical was set to This site.
But once I added(Everything, People, This site) using CSOM , the default vertical has been set to Everything(the first vertical).
Is there any way by which I can set the default vertical again to This site using CSOM without changing the order of verticals ??
Below is the example of what I trying to achieve :
- We have 4 verticals (Everything, People, Conversations, This Site) by default and This Site is last on the drop down But still text displayed in the search box is "Search this site" (as above first image).
- After deleting Conversations vertical, text displayed in the search box is "Search Everything" or "Search People" (as above first image) whichever is the first on the drop down.
I want to display "Search This site" even after deleting the Conversations vertical and with the same order(Everything, People, This site) which is not happening.
I hope this is more clear now.