Thursday, April 23, 2015

Restarting your Search Host Controller will impact People Search

We’ve had issues with people search not working in two environments which was solved by adding the search service account to the WSS_ADMIN_WPG local group on all search servers. The issue is that if the search service account is not part of this group it cannot read the projection model files needed to perform fuzzy name search.

You can read more about this issue over at Ron Grzywacz’s blog.

Tuesday, April 14, 2015

An approach to list all external users in your SharePoint Online enviroment

image

Kirk Liemohn recently asked a question on the Office 365 Yammer network if there was an API to list all the external users on his tenant. Being the search guy I am, I suggested using the search API to do this.

Friday, April 10, 2015

Improving contextual Search in SharePoint Online / 2013

In April 2014 my Puzzlepart colleague Tarjei “The strongest man in SharePoint” Ormest√łyl had a post about how to configure search settings for a site to redirect scope searches over to your search center instead of osssearchresults.aspx. (This would be the “search in this site” search box you find in sites.)
image
In my recent project we have implemented the same logic as we want scope searches in SharePoint 2010 to be sent over to the new 2013 farm.

I have improved on Tarjei’s solution with the following points:
  • Display title of the site instead of just the URL (or list title as we support 2010 redirects to 2013 search)
  • Implement as a generic script to be added anywhere on the page – preferably in the control template, but for this post I’ll do it as a script web part.
If you look at the code I’m using a neat trick to get the DataProvider for the page and also hook in my logic after the results are ready the first time to fire off my custom scope hint code.

// Get a reference to the DataProvider for the page
var dp = Srch.ScriptApplicationManager.get_current().queryGroups.Default.dataProvider;
// Add event to be called after results are ready
dp.add_resultReady(showScopeHint);

Sunday, April 5, 2015

Why content types are still awesome and useful–despite what the cool guys says

This post is about explaining why you don’t need to be concerned about custom web template id’s in search and how to maintain metadata for a site (root web or sub web). In this new world of SharePoint Online we’re only using built-in web templates and derivatives of them right?

A lot of search queries use the contentclass:sts_site webtemplate:templatename construct to limit results only to root sites of a special site type (or sts_web for sub-sites). Living in SharePoint Online most sites will build of a blank or team site, and using the new provisioning engine from Office PnP, this becomes an issue for many. You can use the engine to save a template definition xml file, and create new ones off it, but how do you distinguish sites from one another?

Tuesday, March 31, 2015

Speaking at Ignite on Office Graph and Office Video

image
I’m really honored to be allowed to speak at the biggest SharePoint event for the third time in a row. Previously it was Microsoft SharePoint Conference, now it’s Microsoft Ignite!

Previously I’ve spoken on extending people search and search relevance, and this time I’ve been allowed back for two sessions. One on Office Graph and one on Office 365 Video. Both related to search in their own ways.

If you haven’t signed up for this all encompassing event which covers most of the tech Microsoft has to offer, head over to http://ignite.microsoft.com/ and book May 4-8, 2015 in Chicago in your calendar today!

Thursday, March 19, 2015

Why you (as an HTML developer) should start to think of the DOM as a travelling salesman problem

image
I stumbled upon the following jQuery code by another team member (not a Pzl guys as we know better). I challenged him to figure out what was “wrong” with it and he did sort of clue himself in so I’m not outing him here :)

function showMoreButton(className) {
   var alteringDiv = $(className);
   if (!$.isEmptyObject(alteringDiv)) {
       //DOM changes to Search Navigation
       alteringDiv.prepend('<h2 class="ms-displayInline moreButton"></h2>');
       $('.ms-srchnav-overflow>a').detach().appendTo('.moreButton');
       $('.moreButton>a').text('Other');
       $('.moreButton>a').attr('id', 'moreSearchCategories').addClass('collapsed');
       alteringDiv.removeClass('ms-srchnav-overflow');
       $('.moreButton>a').removeClass('ms-srchnav-more-glyph');
   }
}

Thursday, March 12, 2015

How to: (Unexpectedly) Block the usage of the list/library search box in SharePoint

image

SharePoint has a nifty search box above a list or library which can be used to quickly filter items for that library. So how do you make sure it doesn’t work?

Monday, March 9, 2015

“Meet the bttn–the simplest internet user interface in the world”

[Update 2015-03-11 with comments from bt.tn]
..and I will do a re-test with a newer version of the hardware in the near future. So, when reading the original post, keep in mind that the bttn I had might not have been what you see today.
[Update end]

….and at €69.00, perhaps one of the worst deals you can make(?). Luckily for me I borrowed it from a colleague, so his loss.

image

Basically what you have is a plastic fantastic big red button which hooks up to a WiFi network. When you hit the button it sends a signal over to bt.tn where you can configure the click to call some other service. For example a REST end-point.

The button is powered by 4xAA batteries and can easily be moved around.

Theoretically, this sounds pretty good. In practice not so much. Why? Read on!

Friday, March 6, 2015

A better way to implement RSS feeds in SharePoint 2013/Online

image
I’m doing an assessment for migrating a 2010 solution to 2013, and one of the custom solutions installed was an RSS reader web part. We all know the RSS web part which came with 2010 is a bit limited, and it’s still there in 2013. So if you don’t have any requirements to do authentication on the RSS and you’re in love with XSLT, the web part is there for you my friend!

Another options is to use the Content Search Web Part. Yes CSWP indeed! SharePoint 2013/Online supports the creation of Result Sources using the OpenSearch 1.0/1.1 protocol. And the beauty of this protocol is that the response is in Atom or RSS format.

Thursday, March 5, 2015

Office 2016 for Mac Preview available!

If you’re using OSX and Office, you might not be the happiest person in the world as you’re still using the 2011 version. It works, sure, but not as well as Office 2013 for Windows. Even the iPad works better for the Office suite.


Last year a new version of Outlook was launched for OSX which was a great improvement over the 2011 version, and now the rest of the suite will follow – at least in preview. This will make it heaps easier to work against OneDrive, OneDrive for Business and SharePoint as well as an updated client program feel.

Want to jump on the preview? Header over to http://products.office.com/mac/mac-preview and grab the 2.5GB download. Also read the official post at http://blogs.office.com/2015/03/05/office-2016-mac-preview/