Interface IQueryService
- Namespace
- Dynamicweb.Indexing.Querying
- Assembly
- Dynamicweb.Core.dll
The Interface IQueryService defines basic query service model
public interface IQueryService
Methods
CopyQuery(string, IQuery)
Saves query
ApplicationResponse<IQuery> CopyQuery(string fileName, IQuery query)
Parameters
Returns
DeleteQuery(IQuery)
Deletes query
void DeleteQuery(IQuery query)
Parameters
query
IQueryThe query
DeleteQuery(string)
Deletes query
void DeleteQuery(string queryId)
Parameters
queryId
stringThe unique query id.
LoadFacets(string)
Loads facet group
IFacetGroup? LoadFacets(string fileName)
Parameters
fileName
stringPath to query file in file system
Returns
- IFacetGroup
Query facet group
LoadFacets(string, string)
Loads facet group
IFacetGroup? LoadFacets(string repository, string item)
Parameters
Returns
- IFacetGroup
Query facet group
LoadQuery(string)
Loads query
IQuery? LoadQuery(string fileName)
Parameters
fileName
stringPath to query file in file system
Returns
- IQuery
Query instance
LoadQuery(string, string)
Loads query
IQuery? LoadQuery(string repository, string item)
Parameters
Returns
- IQuery
Query instance
MoveQuery(string, IQuery)
Saves query
ApplicationResponse<IQuery> MoveQuery(string fileName, IQuery query)
Parameters
Returns
Query(IQuery, QuerySettings)
Executes query
IQueryResult? Query(IQuery query, QuerySettings settings)
Parameters
query
IQueryThe query
settings
QuerySettingsQuery settings
Returns
- IQueryResult
Query result
SaveFacets(string, IFacetGroup)
Saves facet group
void SaveFacets(string fileName, IFacetGroup facets)
Parameters
fileName
stringFile name
facets
IFacetGroupThe facet group
SaveFacets(string, string, IFacetGroup)
Saves facet group
void SaveFacets(string repository, string item, IFacetGroup facets)
Parameters
repository
stringRepository name
item
stringItem name
facets
IFacetGroupThe facet group
SaveQuery(string, IQuery)
Saves query
void SaveQuery(string fileName, IQuery query)
Parameters
SaveQuery(string, string, IQuery)
Saves query
void SaveQuery(string repository, string item, IQuery query)