Class QueryService
- Namespace
- Dynamicweb.Indexing.Querying
- Assembly
- Dynamicweb.Core.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
Constructors
QueryService()
public QueryService()
Methods
CopyQuery(string, IQuery)
Saves query
public ApplicationResponse<IQuery> CopyQuery(string queryCopyPath, IQuery query)
Parameters
Returns
DeleteQuery(IQuery)
Saves query
public void DeleteQuery(IQuery query)
Parameters
query
IQueryThe query
DeleteQuery(string)
Saves query
public void DeleteQuery(string queryId)
Parameters
queryId
stringThe query id
LoadFacets(string)
Loads facet group
public IFacetGroup? LoadFacets(string fileName)
Parameters
fileName
stringPath 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
stringPath 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
MoveQuery(string, IQuery)
Saves query
public ApplicationResponse<IQuery> MoveQuery(string queryMovePath, IQuery query)
Parameters
Returns
Query(IQuery, QuerySettings)
Executes the query.
public IQueryResult? Query(IQuery query, QuerySettings settings)
Parameters
query
IQueryThe query.
settings
QuerySettingsThe query settings.
Returns
- IQueryResult
Query result.
SaveFacets(string, IFacetGroup)
Saves facet group
public void SaveFacets(string fileName, IFacetGroup facets)
Parameters
fileName
stringPath to query file in file system
facets
IFacetGroupThe facet group
SaveFacets(string, string, IFacetGroup)
Saves facet group
public void SaveFacets(string repository, string item, IFacetGroup facets)
Parameters
repository
stringRepository name
item
stringItem name
facets
IFacetGroupThe 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)