Serves as the base class for custom search dialog components.
For a list of all members of this type, see SearchDialogComponent Members.
System.Object
Control
WebControl
SearchDialogComponent
The Ontolica Search web part comes with a variety of different search dialogs to meet the different needs of our customers. These search dialogs are based on a very flexible framework that allows you to just customize the existing dialogs or write a new one from scratch. You can use the SearchDialogComponent class for both situations.
Writing a custom search dialog component involves the following steps:
OntolicaSearch.xml
on every front-end web server in the SharePoint server farm. Register the component as shown in the
following example:
<SearchDialogs>
<SearchDialog name="Default" template="Default">
...
<Component type="Custom">
<Assembly>NavigoSystems.Ontolica.SharePoint.Samples, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=55c050f4be48e374</Assembly>
<TypeName>NavigoSystems.Ontolica.SharePoint.Samples.HelloWorldComponent</TypeName>
</Component>
...
<SearchDialog>
</SearchDialogs>
C:\Program Files\Navigo Systems\ONTOLICA for SharePoint\Templates\1033\Default.searchdialog.xslSee the Ontolica Administrators Guide for more information on developing custom search dialogs.
The following example illustrates the simplest possible implementation of a custom search dialog component.
[C#]
namespace MyCompany.Ontolica.SharePoint
{
using NavigoSystems.Ontolica.SharePoint.Custom;
using NavigoSystems.Ontolica.SharePoint.Custom.WebControls;
public class HelloWorldComponent : SearchDialogComponent
{
public HelloWorldComponent() {}
protected override OntolicaQuery Query
{
get
{
OntolicaQuery query = CreateQuery();
query.Expression = "Hello World";
return query;
}
set
{
}
}
protected override void RenderComponent(System.Web.UI.HtmlTextWriter output)
{
output.Write("Hello World");
}
}
}
Namespace: NavigoSystems.Ontolica.SharePoint.Custom.WebControls
Assembly: NavigoSystems.Ontolica.SharePoint (in NavigoSystems.Ontolica.SharePoint.dll)
SearchDialogComponent Members | NavigoSystems.Ontolica.SharePoint.Custom.WebControls Namespace