kevingessner / NEST

ElasticSearch .NET Client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NEST

Strongly typed Elasticsearch client

NEST aims to be a .net client with a very concise API.

Indexing is as simple as:

var post = new Post() { Id = 12, ... }
client.Index(post);

Indexing asynchronously is as easy as:

client.IndexAsync(post, (c) => /* called later */);

Searching is fluid:

var results = this.ConnectedClient.Search<ElasticSearchProject>(s => s
		.From(0)
		.Size(10)
		.Fields(f => f.Id, f => f.Name)
		.SortAscending(f => f.LOC)
		.SortDescending(f => f.Name)
		.MatchAll()
);

Note strongly typed searching is still a work in progress, you're best off using the string based search overload for the time being.

For more examples please refer to the Wiki

To get a good overview of the status of NEST please keep an eye out on the public Roadmap

Copyright

Copyright (c) 2010 Martijn Laarman and everyone wonderful enough to contribute to NEST

Some of the wonderful features in NEST were pushed by these wonderful folks:

License

NEST is licensed under MIT. Refer to license.txt for more information.

About

ElasticSearch .NET Client


Languages

Language:C# 100.0%