C# Class ElasticLinq.BaseElasticConnection

Specifies connection parameters for Elasticsearch.
Inheritance: IElasticConnection
Show file Open project: CenturyLinkCloud/ElasticLINQ

Public Methods

Method Description
GetSearchUri ( ElasticLinq.Request.SearchRequest searchRequest ) : Uri

Gets the uri of the search

SearchAsync ( string body, ElasticLinq.Request.SearchRequest searchRequest, CancellationToken token, ILog log ) : Task

Issues search requests to elastic search

Protected Methods

Method Description
BaseElasticConnection ( string index = null, System.TimeSpan timeout = null, ElasticLinq.ElasticConnectionOptions options = null ) : System

Create a new BaseElasticConnection with the given parameters for internal testing.

Method Details

BaseElasticConnection() protected method

Create a new BaseElasticConnection with the given parameters for internal testing.
protected BaseElasticConnection ( string index = null, System.TimeSpan timeout = null, ElasticLinq.ElasticConnectionOptions options = null ) : System
index string Name of the index to use on the server (optional).
timeout System.TimeSpan TimeSpan to wait for network responses before failing (optional, defaults to 10 seconds).
options ElasticLinq.ElasticConnectionOptions Additional options that specify how this connection should behave.
return System

GetSearchUri() public abstract method

Gets the uri of the search
public abstract GetSearchUri ( ElasticLinq.Request.SearchRequest searchRequest ) : Uri
searchRequest ElasticLinq.Request.SearchRequest The search request settings
return System.Uri

SearchAsync() public abstract method

Issues search requests to elastic search
public abstract SearchAsync ( string body, ElasticLinq.Request.SearchRequest searchRequest, CancellationToken token, ILog log ) : Task
body string The request body
searchRequest ElasticLinq.Request.SearchRequest The search request settings
token System.Threading.CancellationToken The cancellation token to allow aborting the operation
log ILog The logging mechanism for diagnostic information.
return Task