Last week I was working on a customer’s Dev system and when we tried to set up search we received the error:

“The search service is not able to connect to the machine that hosts the administration component”

Interesting. And annoying. I tried removing and recreating the search application service – and we got the same error. Weirdly, it had been working previously. Continue reading

Annoying Navigation in Search Centers

I had two of my colleagues come to me with the same complaint – that the Basic Search Center site template in SharePoint 2010 doesn’t have any navigation to get ‘back’ to the rest of the site collection:

I pointed out to them that there are good reasons to consider having the Search Center separated from the rest of your content. I’d even suggest a separate Site Collection if using the Enterprise Search Center. (This uses the publishing features, and you might not want them turned on in your existing site collection).

However, my colleagues didn’t need all that, and really did just want a simple search center in the same site collection as their content. For example, a departmental site collection needed its own search center and search experience. But they’d really like users to be able to navigate back to the rest of the site collection.

So, I set forth to fix this dire state of affairs for them. Continue reading “Annoying Navigation in Search Centers”

Annoying Navigation in Search Centers

SharePoint Search – AuthzInitializeContextFromSid failed

I’d a really, really weird problem with a customer yesterday. We’d set up their SharePoint search. Indexing seemed to be working correctly, and when I logged in as an administrator, I was getting search results correctly. However, logged in as a normal – though very highly privileged – user my search results were missing! This was some thing of a surprise. It felt like security trimming, but the user was a Site Collection admin, and had Full Control throughout the entire main content web application. Also, we were indexing content off the network file share, and we knew he could access both the SharePoint Content.

However, when he ran a search, he didn’t get any search results. That sucked. I tried another user account – and had the same problem.

Eventually, I looked in the logs and found the following message:

AuthzInitializeContextFromSid failed with ERROR_ACCESS_DENIED. This error indicates that the account under which this process is executing may not have read access to the tokenGroupsGlobalAndUniversal attribute on the querying user’s Active Directory object. Query results which require non-Claims Windows authorization will not be returned to this querying user.

Continue reading “SharePoint Search – AuthzInitializeContextFromSid failed”

SharePoint Search – AuthzInitializeContextFromSid failed

Relating BDC entities for Search Indexing?

I think I might have come across a problem with using the BDC to index entity data in legacy systems. I’m sure I can’t be the first person to have hit this problem, but I can’t find a solution. Thus, I thought I’d blog it so other folks might be aware of it, and to open the problem up to suggestions.

I’m not sure I can describe the system I’m actually working on, so I’m going to use a slightly contrived example… Continue reading “Relating BDC entities for Search Indexing?”

Relating BDC entities for Search Indexing?

SharePoint can have Wildcard searching…

One of the most popular blog post on my site is, curiously, about the lack of wildcard searching in SharePoint out of the box. This, as it happens, is a bit of a simplification, and I’d like to be a bit clearer – even if it is more complicated.

  • Out of the box SharePoint does not have a way of searching for “App*” and getting all results such as “Apple”, “Application”, and so on. This is the wildcard search I was on about before.
  • You can do a wildcard search on a particular metadata property. “Title:App*” would return items with a title that contained “Apple”, “Application”, and so on. The down side is, you have to know the property you want to search on, and you have to know its name, which isn’t always easy or viable for users.
  • SharePoint Search service does actually support wildcard searching – just there is no way of using it with the out of the box controls. Essenially, it’s a problem of the user interface. The search service supports 3 different ways of querying it. This is why Corey Roth wrote his wildcard search webpart (on codeplex), and I’m sure there are others. He explains why he wrote it here, and what you give up by using Full Text SQL queries.

So, in short, if you’re able to do some custom development (or use Corey’s web part), and if you’re willing to trade off some other areas of functionality, you can get wildcard searching – but it’s not just out-of-the-box.

All of this is explained in ‘Inside the Index and Search Engines: Microsoft Office SharePoint Server’ by Tisseghem and Fastrup. I highly recommend it for developers working with Search.

SharePoint can have Wildcard searching…

Contextual Search Results Page Redirection via HTTPModule

So, I’m continuing my efforts at finding a way to handling Contextual Searching.

To describe the issue again, SharePoint allows you to search ‘This List’ or ‘This Site’. Unfortunately, these searches always show the ‘OSSSearchResults.aspx‘ results page, which is built into SharePoint, can’t be modified, and this means that you can’t use your normal ‘Search Center’ experience, which is usually modified and optimized for your users.

This is a shame, so I’ve been looking at ways of overcoming this problem. Continue reading “Contextual Search Results Page Redirection via HTTPModule”

Contextual Search Results Page Redirection via HTTPModule

Contextual Searching Via Search Box AppendQueryTerms

I’ve been looking at using the Search Box web part for a light-weight contextual search.

SharePoint allows you to search ‘This List’ or ‘This Site’. Unfortunately, these searches always show the ‘OSSSearchResults.aspx‘ results page, which is built into SharePoint, can’t be modified, and this means that you can’t use your normal ‘Search Center’ experience, which is usually modified and optimized for your users.

You can add a ‘context’ to a search with some of the search query terms. “Site:http://example/sites/docs” for example would restrict results to those below that URL. So, is there any way we can add that to our query? Continue reading “Contextual Searching Via Search Box AppendQueryTerms”

Contextual Searching Via Search Box AppendQueryTerms