C# Class IsraelHiking.DataAccess.ElasticSearch.ElasticSearchGateway

Inheritance: IElasticSearchGateway
显示文件 Open project: IsraelHikingMap/Site Class Usage Examples

Public Methods

Method Description
ElasticSearchGateway ( ILogger logger ) : System
GetHighways ( LatLng northEast, LatLng southWest ) : Task>
Initialize ( string uri = "http://localhost:9200/", bool deleteIndex = false ) : void
Search ( string searchTerm, string fieldName ) : Task>
UpdateData ( List features, string index ) : System.Threading.Tasks.Task
UpdateHighwaysData ( List features ) : System.Threading.Tasks.Task
UpdateNamesData ( List features ) : System.Threading.Tasks.Task

Private Methods

Method Description
GetId ( NetTopologySuite.Features.Feature feature ) : string

Method Details

ElasticSearchGateway() public method

public ElasticSearchGateway ( ILogger logger ) : System
logger ILogger
return System

GetHighways() public method

public GetHighways ( LatLng northEast, LatLng southWest ) : Task>
northEast LatLng
southWest LatLng
return Task>

Initialize() public method

public Initialize ( string uri = "http://localhost:9200/", bool deleteIndex = false ) : void
uri string
deleteIndex bool
return void

Search() public method

public Search ( string searchTerm, string fieldName ) : Task>
searchTerm string
fieldName string
return Task>

UpdateData() public method

public UpdateData ( List features, string index ) : System.Threading.Tasks.Task
features List
index string
return System.Threading.Tasks.Task

UpdateHighwaysData() public method

public UpdateHighwaysData ( List features ) : System.Threading.Tasks.Task
features List
return System.Threading.Tasks.Task

UpdateNamesData() public method

public UpdateNamesData ( List features ) : System.Threading.Tasks.Task
features List
return System.Threading.Tasks.Task