Table of Contents

Class IndexSearchService

Namespace
Dynamicweb.Indexing.Querying
Assembly
Dynamicweb.Indexing.dll
public class IndexSearchService
Inheritance
IndexSearchService
Inherited Members

Constructors

IndexSearchService()

Initializes a service with default repository.
public IndexSearchService()

IndexSearchService(IndexSearchRepository)

Initializes a service using specified repository.
public IndexSearchService(IndexSearchRepository repository)

Parameters

repository IndexSearchRepository

Methods

Delete(string)

Deletes the IndexSearchConfiguration matching the name.
public void Delete(string name)

Parameters

name string
IndexSearchConfiguration name

GetAllNames()

Gets all IndexSearchConfiguration names.
public IEnumerable<string> GetAllNames()

Returns

IEnumerable<string>
indexSearchConfigurationNames

GetConfigurableSchemaExtenderNames()

Gets all names of configurable schema exnteders.
public IEnumerable<string> GetConfigurableSchemaExtenderNames()

Returns

IEnumerable<string>
configurableSchemaExtenderNames

GetFieldsToIndex(string)

Gets all fields that needs to be indexed for a IConfigurableIndexSchemaExtender.
public IEnumerable<FieldDefinitionBase> GetFieldsToIndex(string schemaExtenderName)

Parameters

schemaExtenderName string
Name of IConfigurableIndexSchemaExtender

Returns

IEnumerable<FieldDefinitionBase>
FieldsToIndex

GetIndexSearch(IndexSearchConfiguration, NameValueCollection)

Gets an indexsearch that can be used to query the index.
public IndexSearch GetIndexSearch(IndexSearchConfiguration config, NameValueCollection parameterValues)

Parameters

config IndexSearchConfiguration
IndexSearchConfiguration to use
parameterValues NameValueCollection
Parameter values. Fx. from querystring

Returns

IndexSearch
indexSearch

GetIndexSearchConfigurations(string)

Gets all IndexSearchConfiguration for the specified schemaExtender.
public IEnumerable<IndexSearchConfiguration> GetIndexSearchConfigurations(string schemaExtenderName)

Parameters

schemaExtenderName string
Configureable schema extender name

Returns

IEnumerable<IndexSearchConfiguration>
IndexSearchConfigurations

GetSchemaExtender(string)

Gets the IConfigurableIndexSchemaExtender matching the name.
public IConfigurableIndexSchemaExtender GetSchemaExtender(string name)

Parameters

name string
Name of IConfigurableIndexSchemaExtender

Returns

IConfigurableIndexSchemaExtender
configurableIndexSchemaExtender

Read(string)

Fetches the IndexSearchConfiguration based upon name.
public IndexSearchConfiguration Read(string name)

Parameters

name string
IndexSearchConfiguration name

Returns

IndexSearchConfiguration
indexSearchConfiguration

Save(IndexSearchConfiguration)

public void Save(IndexSearchConfiguration configuration)

Parameters

configuration IndexSearchConfiguration
Configuration to persist
To top