Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Loading...
Area: Optimizely Search & Navigation
ARCHIVED This content is retired and no longer maintained. See the latest version here.

Introduction

The first step in using the EPiServer Find .NET API is to add references to the required assemblies EPiServer.Find.dll and NewtonSoft.Json.dll. With that done the final step is to configure the service URL and default index name in web.config/app.config.

Configuration

Open the web.config/app.config file and add the following:

XML
 <configuration>
     <configSections>
            <section
            name="episerver.find"
            type="EPiServer.Find.Configuration, EPiServer.Find" requirePermission="false"/>
        </configSections>
        <episerver.find
            serviceUrl="http://..."
        defaultIndex="myindex"/>
</configuration>

With the configuration in place we can create an instance of the Client class using EPiServer.Find.Client.CreateFromConfig() and start indexing and searching.

Last updated: Jun 10, 2014