Table of Contents

Class SearchRequest

Namespace
Dynamicweb.QueryPublisher
Assembly
Dynamicweb.QueryPublisher.dll
public class SearchRequest
Inheritance
SearchRequest
Inherited Members

Properties

CurrentPage

Defines which page of the paginated resultset to return. Eg. PageSize of 10 and CurrentPage of 2 in a resultset of 30, returns result item #11 to #20.

public int CurrentPage { get; set; }

Property Value

int

FacetGroupNames

List FacetGroupNames.

public IList<string> FacetGroupNames { get; }

Property Value

IList<string>

PageSize

Limits the number of results in the returned view

public int PageSize { get; set; }

Property Value

int

Parameters

Search parameters associated with the query.

public Dictionary<string, object> Parameters { get; }

Property Value

Dictionary<string, object>

QueryName

Used together with the RepositoryName to perform a search for results.

public string QueryName { get; set; }

Property Value

string

RepositoryName

Used together with the QueryName to perform a search for results.

public string RepositoryName { get; set; }

Property Value

string

ShowFacetOptionsWithNoResult

Determines whether facet options without results are displayed.

public bool ShowFacetOptionsWithNoResult { get; set; }

Property Value

bool

SortBy

The field to sort by.

public string SortBy { get; set; }

Property Value

string

SortOrder

The sort direction. Default is ASC, the other option is DESC.

public string SortOrder { get; set; }

Property Value

string

Methods

AddFacetGroupName(string)

public void AddFacetGroupName(string value)

Parameters

value string

AddParameter(string, object)

public void AddParameter(string key, object value)

Parameters

key string
value object
To top