Class QueryService
- Namespace
- Dynamicweb.Indexing.Querying
- Assembly
- Dynamicweb.Indexing.dll
The Class QueryService represents service for common operations with queries e.g. load and save etc.
public class QueryService : IQueryService
- Inheritance
-
QueryService
- Implements
- Inherited Members
- Extension Methods
Methods
DeleteQuery(IQuery)
Saves query
public void DeleteQuery(IQuery query)
Parameters
query
IQuery- The query
DeleteQuery(string)
Saves query
public void DeleteQuery(string queryId)
Parameters
queryId
string
LoadFacets(string)
Loads facet group
public 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
public IFacetGroup LoadFacets(string repository, string item)
Parameters
Returns
- IFacetGroup
- Query facet group
LoadQuery(string)
Loads query
public IQuery LoadQuery(string fileName)
Parameters
fileName
string- Path to query file in file system
Returns
- IQuery
- Query instance
LoadQuery(string, string)
Loads query
public IQuery LoadQuery(string repository, string item)
Parameters
Returns
- IQuery
- Query instance
Query(IQuery, QuerySettings)
Executes the query.
public IQueryResult Query(IQuery query, QuerySettings settings)
Parameters
query
IQuery- The query.
settings
QuerySettings- The query settings.
Returns
- IQueryResult
- Query result.
SaveFacets(string, IFacetGroup)
Saves facet group
public void SaveFacets(string fileName, IFacetGroup facets)
Parameters
fileName
string- Path to query file in file system
facets
IFacetGroup- The facet group
SaveFacets(string, string, IFacetGroup)
Saves facet group
public 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
public void SaveQuery(string fileName, IQuery query)
Parameters
SaveQuery(string, string, IQuery)
Saves query
public void SaveQuery(string repository, string item, IQuery query)