Class IndexSearchService
- Namespace
- Dynamicweb.Indexing.Querying
- Assembly
- Dynamicweb.Core.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
stringIndexSearchConfiguration 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
stringName 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
IndexSearchConfigurationIndexSearchConfiguration to use
parameterValues
NameValueCollectionParameter values. Fx. from querystring
Returns
- IndexSearch
indexSearch
GetIndexSearchConfigurations(string)
Gets all IndexSearchConfiguration for the specified schemaExtender.
public IEnumerable<IndexSearchConfiguration> GetIndexSearchConfigurations(string schemaExtenderName)
Parameters
schemaExtenderName
stringConfigureable schema extender name
Returns
- IEnumerable<IndexSearchConfiguration>
IndexSearchConfigurations
GetSchemaExtender(string)
Gets the IConfigurableIndexSchemaExtender matching the name.
public IConfigurableIndexSchemaExtender? GetSchemaExtender(string name)
Parameters
name
stringName of IConfigurableIndexSchemaExtender
Returns
- IConfigurableIndexSchemaExtender
configurableIndexSchemaExtender
Read(string)
Fetches the IndexSearchConfiguration based upon name.
public IndexSearchConfiguration? Read(string name)
Parameters
name
stringIndexSearchConfiguration name
Returns
- IndexSearchConfiguration
indexSearchConfiguration
Save(IndexSearchConfiguration)
Persists the IndexSearchConfiguration.
public void Save(IndexSearchConfiguration configuration)
Parameters
configuration
IndexSearchConfigurationConfiguration to persist