Skip to content

tdctaz/NEST

 
 

Repository files navigation

NEST

Strongly typed Elasticsearch client

NEST aims to be a .net client with a very concise API. Its main goal is to provide a solid strongly typed Elasticsearch client. It also has string/dynamic overloads for more dynamic usecases.

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 fluent:

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 @joelabrahamsson wrote a great intro into elasticsearch on .NET using NEST.

Also checkout the searchbox.io guys rocking NEST on AppHarbor with their demo project

Installing

Nest can be installed through NuGet:

PM> Install-Package NEST

Or searching for "elasticsearch" will get you to nest as well.

#Who's using NEST?

Always keen to hear and list more uses ! hit me on @Mpdreamz

Questions, bugs, comments, requests

All of these are more then welcome on the github issues pages! I try to to at least reply within the same day.

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)!

Many thanks to my employer Q42 for supporting the development of NEST by donating 20% of my contract hours for NEST's development. That means I get a full paid day to work on NEST a week, whoohoo! If you are in the netherlands (The Hague/Amsterdam area) and looking for a great place to work: we're hiring!

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.

About

Elasticsearch .NET Client

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 97.7%
  • CSS 1.3%
  • Other 1.0%