Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Customize Your Search Using SharePoint Portal Server 2003

Status
Not open for further replies.

chooseFile

Programmer
Jan 10, 2005
2
FR
Hi,

I am a newbie in SharePoint technology. After spending a while on setting my development platform i started to implement a customize search with SharePoint Objects and Microsoft.SharePoint.Portal.Search.Query in particular.

I base my code on Patrick Tisseghem’s article « How to Customize Your Search Using SharePoint Portal Server 2003 »
Ref :

TopologyManager topology = new TopologyManager();
PortalSite portal = topology.PortalSites[new Uri("];
PortalContext context = PortalApplication.GetContext(portal);

QueryProvider qp = new QueryProvider(context.SearchApplicationName);

But when i create the QueryProvider instance I got the following error message.

The virtual server that is referenced here is not in the config database

When I look at the context.SearchApplicationName value i see the GUID of my SPS portal.

Any idea ?

Thanx,
Choose File
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top