Class SearchOptions
- Namespace
- PnP.Core.Model.SharePoint
- Assembly
- PnP.Core.dll
Defines the search query to make
public class SearchOptions
- Inheritance
-
SearchOptions
- Inherited Members
Constructors
SearchOptions(string)
Default constructor
public SearchOptions(string query)
Parameters
querystringProvide the query to issue
Properties
ClientType
Client type used for the search query (defaults to ContentSearchRegular)
public string ClientType { get; set; }
Property Value
Query
Search query to issue
public string Query { get; }
Property Value
RefineProperties
Properties used to refine the search results
public List<string> RefineProperties { get; set; }
Property Value
RefinementFilters
The set of refinement filters used when issuing a refinement query
public List<string> RefinementFilters { get; set; }
Property Value
ResultSourceId
Result source id to use for the search query
public string ResultSourceId { get; set; }
Property Value
RowLimit
Max number of rows to return
public int? RowLimit { get; set; }
Property Value
- int?
RowsPerPage
Rows to return per page. Defaults to 500
public int? RowsPerPage { get; set; }
Property Value
- int?
SelectProperties
Properties to select
public List<string> SelectProperties { get; set; }
Property Value
SortProperties
Properties to sort the query on
public List<SortOption> SortProperties { get; set; }
Property Value
StartRow
Start row of the search result set
public int? StartRow { get; set; }
Property Value
- int?
TrimDuplicates
Trim duplicate search results
public bool TrimDuplicates { get; set; }