Class FacetGroupHelper
- Namespace
- Dynamicweb.Indexing.Querying.Faceting
- Assembly
- Dynamicweb.Core.dll
The Class FacetGroupHelper helps to work with facet groups
public static class FacetGroupHelper
- Inheritance
-
FacetGroupHelper
- Inherited Members
Methods
ConvertToFacets(XElement)
Converts xml element into facet group
public static IFacetGroup ConvertToFacets(XElement obj)
Parameters
obj
XElementThe element to be converted into facet group
Returns
- IFacetGroup
Facet group instance
ConvertToXml(IFacetGroup)
Converts facet group into xml element
public static XElement ConvertToXml(IFacetGroup facets)
Parameters
facets
IFacetGroupThe facet group to be converted
Returns
- XElement
Facet group in xml element representation
GetValueMapper(IEnumerable<Type>, string)
public static ValueMapperBase GetValueMapper(IEnumerable<Type> valueMappers, string facetSource)
Parameters
valueMappers
IEnumerable<Type>facetSource
string
Returns
LoadFacets(IQueryService, string, RepositoryFileFormat)
Loads facet group
public static IFacetGroup LoadFacets(this IQueryService queryService, string fileName, RepositoryFileFormat fileFormat)
Parameters
queryService
IQueryServiceQuery service instance
fileName
stringPath to query file in file system
fileFormat
RepositoryFileFormatFormat of query
Returns
- IFacetGroup
Query facet group
Merge(XElement, IFacetGroup)
Merges facet group to xml element
public static void Merge(XElement element, IFacetGroup facets)
Parameters
element
XElementXml element instance
facets
IFacetGroupFacet group instance
SaveFacets(IQueryService, string, IFacetGroup, RepositoryFileFormat)
Saves facet group
public static void SaveFacets(this IQueryService queryService, string fileName, IFacetGroup facets, RepositoryFileFormat fileFormat)
Parameters
queryService
IQueryServiceQuery service instance
fileName
stringPath to query file in file system
facets
IFacetGroupThe facet group
fileFormat
RepositoryFileFormatFormat of query