Skip to content

Latest commit

 

History

History
57 lines (38 loc) · 2.12 KB

README.markdown

File metadata and controls

57 lines (38 loc) · 2.12 KB

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

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

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.