C# Class ElasticLinq.BaseElasticConnection

Specifies connection parameters for Elasticsearch.
Inheritance: IElasticConnection
Afficher le fichier Open project: CenturyLinkCloud/ElasticLINQ

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

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.
Résultat System

GetSearchUri() public abstract méthode

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

SearchAsync() public abstract méthode

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.
Résultat Task