Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Goal

This article contains information about the implementation of the searching process. The C# SDK exposes a method which can be used to make search requests to the Hawksearch API.

Prerequisite

Configured Connector - Configure Hawksearch


The Search method exposes a functionality to make search requests to the Hawksearch API.

SearchResult Search(SearchQuery query);

Parameters:

  • SearchQuery query

 SearchQuery properties

public string ClientGuid { get; set; } public string IndexName { get; set; } public string Keyword { get; set; } public int PageNo { get; set; } public int MaxPerPage { get; set; } public string SortBy { get; set; } public string CustomUrl { get; set; } public string SortingSetCode { get; set; } public string SearchWithin { get; set; } public List<string> FacetOverride { get; set; } public List<string> FieldOverride { get; set; } public ClientData ClientData { get; set; } public bool IsInPreview { get; set; } public string ExplainDocId { get; set; } public List<object> SmartBar { get; set; } public bool BoostAndBury { get; set; } public bool VisibilityRules { get; set; } public bool PersonalizedBoost { get; set; } public bool PopularityBoost { get; set; } public bool ItemPin { get; set; } public bool Is100CoverageTurnedOn { get; set; } public Dictionary<string, List<object>> FacetSelections { get; set; }

  • No labels