Table of Contents

Interface IQueryService

Namespace
Dynamicweb.Indexing.Querying
Assembly
Dynamicweb.Indexing.dll
The Interface IQueryService defines basic query service model
[InheritedExport]
public interface IQueryService
Extension Methods

Methods

DeleteQuery(IQuery)

Deletes query
void DeleteQuery(IQuery query)

Parameters

query IQuery
The query

DeleteQuery(string)

Deletes query
void DeleteQuery(string queryId)

Parameters

queryId string
The unique query id.

LoadFacets(string)

Loads facet group
IFacetGroup LoadFacets(string fileName)

Parameters

fileName string
Path to query file in file system

Returns

IFacetGroup
Query facet group

LoadFacets(string, string)

Loads facet group
IFacetGroup LoadFacets(string repository, string item)

Parameters

repository string
Repository name
item string
Item name

Returns

IFacetGroup
Query facet group

LoadQuery(string)

Loads query
IQuery LoadQuery(string fileName)

Parameters

fileName string
Path to query file in file system

Returns

IQuery
Query instance

LoadQuery(string, string)

Loads query
IQuery LoadQuery(string repository, string item)

Parameters

repository string
Repository name
item string
Query name

Returns

IQuery
Query instance

Query(IQuery, QuerySettings)

Executes query
IQueryResult Query(IQuery query, QuerySettings settings)

Parameters

query IQuery
The query
settings QuerySettings
Query settings

Returns

IQueryResult
Query result

SaveFacets(string, IFacetGroup)

Saves facet group
void SaveFacets(string fileName, IFacetGroup facets)

Parameters

fileName string
File name
facets IFacetGroup
The facet group

SaveFacets(string, string, IFacetGroup)

Saves facet group
void SaveFacets(string repository, string item, IFacetGroup facets)

Parameters

repository string
Repository name
item string
Item name
facets IFacetGroup
The facet group

SaveQuery(string, IQuery)

Saves query
void SaveQuery(string fileName, IQuery query)

Parameters

fileName string
Path to query file in file system
query IQuery
The query

SaveQuery(string, string, IQuery)

Saves query
void SaveQuery(string repository, string item, IQuery query)

Parameters

repository string
Repository name
item string
Item name
query IQuery
The query
To top