Search Server Express 2010: Trial period for this product is about to expire

...well, should Search Server Express be showing this? And, isn't that a bit harsh considering that I only installed it yesterday? :-D
 
SSX Trial Expiring
 
QA, any comments?

Published: May-14-10 | 2 Comments | Link to this post

Crawled Property problems

The SharePoint technical documentation leaves a lot to wish for in general, but Crawled Properties is probably one of the worst topics when it comes to documentation. On top of that, the functionality to implement is weak as well. Let me give you some examples:
 
When you google for "SharePoint CrawledProperty" you get a whopping 1500 search results (I'm not sarcastic, just comparing Google to Bing, read on!) and on Bing you find 122 results on the same search, with the majority being people asking for help, I'd say.
 
Anne Stenberg provides a few clues on her blog about how to "interpret" the Crawled Properties. Let me quote:
 
"Property Set ID - A GUID that identifies the property set for the crawled property. Doing a search for the GUID B725F130-47EF-101A-A5F1-02608C9EEBAC and filtering the results for the Property Name of 12 yields several links to related content. One such link, on MSDN, provides a tremendous amount of information. This tells us that this property set is a System property and the propID of 12 is the file size"

While helpful to know, for me it simply shows how awkward the whole naming system is around Crawled Properties. But let's move on and get productive. We want to make things work here...

 

I'll use a real-world scenario to describe a typical problem around Crawled properties and how to solve it: assume you want to search on the "Date Picture Taken" column of the Picture library. After you put a fresh MOSS installation on a server, you can look up in the Search Administration of the Central Administration what Managed Property is available for that kind of search (only Managed Properties can be used in the search!). You'll find one entry:

 
Initial DatePictureTaken Mapping
 
A Managed Property (DatePictureTaken) already exists and has a mapped Crawled property called "ows_Image_x0020_CreateDate". While this looks good at first glance it will actually not help us at all. Why? Because the internal name for the "Date Picture Taken" column in the Picture library is "ImageCreateDate", so the CrawledProperty we'd need would be "ows_ImageCreateDate".
 
Just a quick explanation on the Crawled property naming convention: Crawled Properties are created automatically by the search crawler when it detects new columns that have a value. SharePoint columns always start with "ows_" (probably stands from "Office web server") concatenated with the internal name of the column.
 
So, let's have a look if there is another Crawled Property available with the right name. Under the Crawled Properties section we find this:
 
Initial ImageCreateDate Crawled Properties
 
Hmm, there are even three such Crawled Properties: two with the same, wrong name (including the text/hex version of a blank in the name) and one with the right name... but it's got the wrong type: we need a DateTime field, not a Text field!
 
OK, time to upload some images that include metadata for the "Date Picture Taken" column. A (shameless ;-) plug for our FC.MetadataExtractor product here: it extracts that DatePictureTaken metadata (and more) by default, and puts it in the right column. After that, starting a Crawl will "nudge" the search crawler to recognize the Date Picture Taken column in the Picture library, because it now has data. And voila, we have the "Date Picture Taken" column linked to the right Crawled Property and in turn we can go ahead and link this Crawled Property to the existing "DatePictureTaken" Managed Property (done in the following screenshot with our FC.ImageSearch product, but you can also do that in the Search Administration section of the Central Administration).
 
The right DatePictureTaken Crawled Property
 
But we're still not done: if we'd do a search now we'd get a really unfriendly error from the search service:
 
SearchService Error with Property
 
This is because we now have two Crawled Properties mapped to the Managed Property, but it can only take input from one at a time, so we need to change another setting for the Managed Property to "include values from a single crawled property...":
 
Single Crawled Property mapped
 
Yet another full crawl will help to push the Crawled Property data on to the newly linked Managed Property.
 
Now comes the fun! In the Search Configuration page of the FC.ImageSearch you can simply add the DatePictureTaken Managed Property that is now linked to the library's "Date Picture Taken" column and add it to the properties for the Advanced Search page:
 
Add DatePictureTaken to Advanced Search

 
Now, in the Advanced Search page you can select the "All Images" scope of the FC.ImageSearch solution and then choose from its Managed Properties the DatePictureTaken property:
 

DatePictureTaken search

 
...and that will get the successful search on our "Date Picture Taken" column:
 

DatePictureTaken search result 

 
Well, I still wonder why there are - out of the box - three ambiguous ImageCreateDate Crawled Properties. And what's more, deleting Crawled Properties is not possible in SharePoint, so you'll just have to ignore them.
 
But at least we got the search to work!


Published: May-12-10 | 4 Comments | Link to this post

SearchBox ignores custom scope search result page

Another one out of the "weird" series: now, our FC.ImageSearch solution includes an "All Images" custom scope that has an "ImageSearch.aspx" result page attached to it and usually, when the user selects this scope in the Search Dropdown menu, the search result is shown in the before-mentioned result page. But NOT always!
 
A search with this configuration:
 
SearchBox With All Images Scope
 
...resulted in the dreaded OSSSearchResults page on one of our MOSS test servers:
 
The dreaded OSSSearchResultsPage
 
Hmm, if this was the SearchBox on the landing page of the Search center, you could simply go into its Web Part properties and fix the problem there but, unfortunately, this is the SearchBox on the master page, so you can't simply call "Edit page" for it. What's worse, messing around with the control on the masterpage wouldn't necessarily help much either, as that's only a Delegate control.
 
Well, there's still an easy way to solve this: simply open up the "\12\TEMPLATE\FEATURES\OSearchEnhancedFeature\SearchArea.xml" file and add the following property, which is selected in the screenshot below:
 
SearchBox with added property
Close and save the file, do an "iisreset", refresh your page, re-issue the query and you should see the search result page of the custom scope come up:
 
Correct Search Result page after property modification
 
Easy to solve but still annoying that the default setting of the SearchBox would ignore the result page of the custom scope. If I were the product manager I'd call that a bug, Microsoft probably calls it a feature. ;-)

Published: May-11-10 | 4 Comments | Link to this post

"This List" contextual scope missing in the Scopes Dropdown

Now that was weird... The "This Site" contextual scope was showing in the Scopes Dropdown, but the "This List" scope was not showing at all on any list:
 
This List Scope Missing
 
I checked and changed the DropDownMode property to see if that would bring the "This List" scope back ...but no.
 
Call it "years of trial and error" experience to find the solution for this problem: turns out that accessing the site with the "Custom" zone (configured in AAM as "http://localhost") was causing it ...when accessing the site with the "Default" zone (configured as http://2k8x64Moss) the "This List" contextual scope shows just fine ...I'd call that a bug, MS probably calls it a feature ;-)

Published: May-11-10 | 0 Comments | Link to this post

Upgrade Your Windows SharePoint Services 3 installation to Search Server Express 2008!

Why? Because Microsoft Search Server Express (MSSX) is a great product, as it includes many of the search elements and the core search engine of the commercial MOSS 2007 product.
 
Upgrading from WSS3 to MSSX is actually not that difficult (really!). In fact, I usually install WSS as a farm first anyway and then upgrade the servers to MSSX as a second step.
 
If you haven't got anything installed yet, Windows Server 2008 R2 x64 is a great platform. Make sure you install SQL Server Express separately upfront, so you can choose the proper "advanced" installation for WSS3. Anything from SQL Server 2005 SP3 and up will do, but I also really like the brand-new SQL Server 2008 R2 Express.
 
The upgrade process is really nothing more than running the MSSX installer and the usual wizard afterwards, whereas you should install on the Central Admin server first and configure the MSSX-specific settings on that machine after the wizard has finished. The upgrade procedure is well described in this document.
 
Of course, there's a catch (it would be too easy otherwise, wouldn't it? ;-) After the upgrade is completed you might be missing some vital MSSX components, and if you're not familiar with MSSX you might not even know what you're missing.
 
Here's a couple of screenshots that point out the short-comings of the upgrade results:
 
Site Administration has no search settings links
 
What is wrong here is that the links to the search administration pages are missing.
 
Search Box with Scopes Dropdown missing
 
Well, not only are we missing the great "All Sites" scope for searching but even when adding a custom scope manually it simply won't show here.
 
One might be tempted to configure the "SmallSearchInputBox" but all attempts to do so are doomed. Both problems actually stem from the same problem and are simple to solve: the upgrade didn't automatically turn on the Web Application-level features for Search, as can be seen here:
 
Missing Web App Feature Activation
 
Once you've activated these features the SmallSearchInputBox will display properly (and can also be configured nicely under "\12\TEMPLATE\FEATURES\OSearchEnhancedFeature\SearchArea.xml" and voila, we now have a proper Search Box and even search configuration links in the Site Administration page are now showing:
 
Search configuration links partially available
 
Well, unfortunately there are still two links missing (for the "Search queries" page and the "Search results" page), so I've written a little feature to add those missing links as well (the pages for this functionality are actually installed, just the links are missing), which you can download here.
 
Enjoy the MSSX product. Once you've configured the search I am sure you will. And it doesn't get much better than free!

Published: May-10-10 | 0 Comments | Link to this post

FC.ImageSearch released!

I am very happy that we've shipped this product, because I believe that it will mean a big difference for everyone who searches for images in SharePoint. It's not just about the proper layout of thumbnails on the search result page, but also about having the right links with the search results which makes the search experience so much more powerful. And of course, having thumbnails for images stored in any kind of library, or even file shares, is great too.
 
FC.ImageSearch result page
 
My favorite part of the solution though, is the streamlined view of all the search-related administrative information, and the ability to configure the search in one place rather than manually modifying properties scattered across the Central Administration and the library properties. Not to speak about the properties in the advanced search page and the core search result page. It now, literally, takes only seconds to add a library column as a Managed Property, or to add it right away also as a search criteria for the Advanced page.
 
Well, releasing a product is also always the right time to share some credits, which I am happy to do here:
 
Matthew McDermott's 4 part series on configuring image search results somewhat inspired us to turn his suggestion into a real product.
 
 
And of course, the late Patrick Tisseghem deserves a lot of credit too for his book, the webcasts and articles he provided. Patrick, you're missed.

Published: May-08-10 | 2 Comments | Link to this post

SharePoint Foundation Search V4 Disabled after install

I just tried to get a flawless installation done with the release version of SharePoint Foundation (SPF10), but using the built-in SQL Server I was getting too many errors in the Event Log. I then tried the recently released SQL Express 2008 R2 and had much more luck using that.
 
After the install and the Wizard had finished I checked the services and was astonished to see that both the SharePoint User Code Host and the SharePoint Foundation Search V4 were Disabled. When I then tried to start the Search service I got the occasional odd error (...cannot be started with Error 6, Handle is invalid). Well, I finally got it started switching the service from the pre-configured "Local Service" account to "Local System". Go figure!

Published: May-01-10 | 2 Comments | Link to this post