C# Class Couchbase.Search.SearchClient

A client for making FTS IFtsQuery requests and mapping the responses to ISearchQueryResult's.
Inheritance: ISearchClient, IDisposable
Show file Open project: couchbase/couchbase-net-client Class Usage Examples

Public Methods

Method Description
CreateHttpClient ( ) : HttpClient

Creates the HTTP client.

Dispose ( ) : void
Query ( SearchQuery searchQuery ) : ISearchQueryResult

Executes a IFtsQuery request including any ISearchParams parameters.

QueryAsync ( SearchQuery searchQuery ) : Task

Executes a IFtsQuery request including any ISearchParams parameters asynchronously.

SearchClient ( HttpClient httpClient, IDataMapper dataMapper ) : System

Private Methods

Method Description
ProcessError ( Exception e, Couchbase.Search.SearchQueryResult result ) : void

Processes the error.

Method Details

CreateHttpClient() public method

Creates the HTTP client.
public CreateHttpClient ( ) : HttpClient
return System.Net.Http.HttpClient

Dispose() public method

public Dispose ( ) : void
return void

Query() public method

Executes a IFtsQuery request including any ISearchParams parameters.
public Query ( SearchQuery searchQuery ) : ISearchQueryResult
searchQuery SearchQuery
return ISearchQueryResult

QueryAsync() public method

Executes a IFtsQuery request including any ISearchParams parameters asynchronously.
public QueryAsync ( SearchQuery searchQuery ) : Task
searchQuery SearchQuery
return Task

SearchClient() public method

public SearchClient ( HttpClient httpClient, IDataMapper dataMapper ) : System
httpClient System.Net.Http.HttpClient
dataMapper IDataMapper
return System