Wednesday, March 18, 2009

Odd ball error on SharePoint

I've come across a very odd error with Microsoft Office SharePoint Server 2007 (MOSS 2007) that I just can't figure out. On line searching is leading me around in circles.

With MOSS 2007, there is a default search page, _layouts/OSSSearchResults.aspx and you just paste in that URL into the Simple Search web part or the Advanced Search web part. The first page of results will display just fine using either web part. However, the "next page" link fails for the Advanced Web Part.

When you use the Simple Search web part, you get a long URL:

/_layouts/OSSSearchResults.aspx?k=test&cs=This%20Site&u=http....

K = the info you put into simple search
CS = scope for the search

When you hit next, the JavaScript appends more stuff to the URL and off you go - no problems at all.

/_layouts/OSSSearchResults.aspx?k=test&cs=This%20Site&u=http....&start1=11

The advanced search does not format a long URL. When you hit Next, you get a blank page. I have been looking through everything I can find about this web part and I have gotten nothing out of it. It seems that 90% of developers out there roll their own search web parts instead of use Microsoft's. Even on the office.microsoft.com search, the top articles are how to make your own.

Come on... can't I just used the built in one?

No comments: