Elasticsearch .NET Client
C# Ruby
Pull request Compare This branch is 4933 commits behind elastic:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
build
dep
docs
src
.gitignore
NEST.nuspec
README.markdown

README.markdown

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, ... }
var result = client.Index(post);

Indexing asynchronously is as easy as:

//t is a Task<ConnectionStatus>
var t = client.IndexAsync(post);

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)
		.Query(q=>q.Term(f=>f.Name, "NEST", Boost: 2.0))
);

#Read the documentation here

additionally @joelabrahamson wrote a great intro into elasticsearch on .NET using NEST.

Copyright

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

A special shoutout to @stephenpope for allowing his port of the java factory based dsl Rubber to be merged into NEST. NEST now has two types of query dsl's (lambda and factory based)!

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

License

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