Skip to content

Commit 9486a09

Browse files
committed
rebuild documentation
1 parent d70addd commit 9486a09

File tree

134 files changed

+232
-128
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+232
-128
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<html><head><title>Nest - Beta Release Notes</title><meta http-equiv="cache-control" content="no-cache"/><meta http-equiv="pragma" content="no-cache"/><meta http-equiv="content-type" content="text/html;charset=utf-8"/><meta http-equiv="expires" content="0"/><meta name="description" content="elasticsearch"/><meta name="keywords" content="nest, elasticsearch, .net, client"/><meta name="author" content="martijn laarman"/><meta name="viewport" content="width=device-width, initial-scale=1"/>
2+
<script src="/scripts/html5shiv.js"></script><link rel="stylesheet" type="text/css" href="/styles/normalize.css"/><link rel="stylesheet" type="text/css" href="/styles/layout.css"/><link rel="stylesheet" type="text/css" href="/styles/pygments.css"/><link rel="stylesheet" type="text/css" href="/styles/pygments.css"/><link rel="stylesheet" type="text/css" href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css"/><link href="//fonts.googleapis.com/css?family=Ubuntu+Mono|Open+Sans" rel="stylesheet" type="text/css"/><link href="/prettify/prettify.css" type="text/css" rel="stylesheet"/><link href="/prettify/sunburst.css" type="text/css" rel="stylesheet"/><script src="//code.jquery.com/jquery.min.js" type="text/javascript"></script><script type="text/javascript" src="/prettify/prettify.js"></script><script type="text/javascript" src="/prettify/fix_code_tags.js"></script></head><body><div class="wrapper"><header class="header"><div class="actions"><iframe src="//ghbtns.com/github-btn.html?user=elasticsearch&amp;repo=elasticsearch-net&amp;type=fork&amp;count=true" allowtransparency="true" frameborder="0" scrolling="0" width="95" height="20"></iframe><iframe src="//ghbtns.com/github-btn.html?user=elasticsearch&amp;repo=elasticsearch-net&amp;type=watch&amp;count=true" allowtransparency="true" frameborder="0" scrolling="0" width="110" height="20"></iframe></div><img src="/images/elasticsearch-net-nuget-icon.png" width="48" height="48"/><h1>Elasticsearch.Net & NEST</h1><p>Documentation</p></header><div class="divide"></div><div class="middle"><div class="container"><main class="content"></main></div><aside class="left-sidebar"><aside id="menu"><ul><li><a href="/">Home</a><a href="/contributing.html">Contributing</a><a href="/building.html">Building</a><a href="/breaking-changes.html">1.0 Breaking Changes</a><a href="https://github.com/elasticsearch/elasticsearch-net/releases">Release Notes</a></li></ul><ul id="elasticsearch-net"><h4 class="title">Elasticsearch.Net</h4><ul><li><a href="/elasticsearch-net/quick-start.html">Quick Start</a></li><li><a href="/elasticsearch-net/connecting.html">Connecting</a></li><li><a href="/elasticsearch-net/cluster-failover.html">Cluster failover</a></li><li><a href="/elasticsearch-net/building-requests.html">Building requests</a></li><li><a href="/elasticsearch-net/handling-responses.html">Handling responses</a></li><li><a href="/elasticsearch-net/errors.html">Errors</a></li></ul></ul><ul id="nest"><h4 class="title">NEST</h4><ul><li><a href="/nest/quick-start.html">Quick Start</a></li><li><a href="/nest/connecting.html">Connecting</a></li><li><a href="/nest/index-type-inference.html">Type/Index Inference</a></li><li><a href="/nest/handling-responses.html">Handling responses</a></li><li><a href="/nest/writing-queries.html">Writing queries</a></li></ul><li><h4><a href="/nest/core/"><i class="fa fa-chevron-right"></i>Core</a></h4></li><li><h4><a href="/nest/indices/aliases.html"><i class="fa fa-chevron-right"></i>Indices</a></h4></li><li><h4><a href="/nest/cluster/health.html"><i class="fa fa-chevron-right"></i>Cluster</a></h4></li><li><h4><a href="/nest/search/basics.html"><i class="fa fa-chevron-right"></i>Search</a></h4></li><li><h4><a href="/nest/facets/handling.html"><i class="fa fa-chevron-right"></i>Facets</a></h4></li><li><h4><a href="/nest/query/text.html"><i class="fa fa-chevron-right"></i>Query DSL</a></h4></li><li><h4><a href="/nest/filter/and.html"><i class="fa fa-chevron-right"></i>Filter DSL</a></h4></li></ul></aside></aside></div><footer class="footer"></footer></div></body></html>
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<html><head><title>Nest - Breaking changes</title><meta http-equiv="cache-control" content="no-cache"/><meta http-equiv="pragma" content="no-cache"/><meta http-equiv="content-type" content="text/html;charset=utf-8"/><meta http-equiv="expires" content="0"/><meta name="description" content="elasticsearch"/><meta name="keywords" content="nest, elasticsearch, .net, client"/><meta name="author" content="martijn laarman"/><meta name="viewport" content="width=device-width, initial-scale=1"/>
2+
<script src="/scripts/html5shiv.js"></script><link rel="stylesheet" type="text/css" href="/styles/normalize.css"/><link rel="stylesheet" type="text/css" href="/styles/layout.css"/><link rel="stylesheet" type="text/css" href="/styles/pygments.css"/><link rel="stylesheet" type="text/css" href="/styles/pygments.css"/><link rel="stylesheet" type="text/css" href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css"/><link href="//fonts.googleapis.com/css?family=Ubuntu+Mono|Open+Sans" rel="stylesheet" type="text/css"/><link href="/prettify/prettify.css" type="text/css" rel="stylesheet"/><link href="/prettify/sunburst.css" type="text/css" rel="stylesheet"/><script src="//code.jquery.com/jquery.min.js" type="text/javascript"></script><script type="text/javascript" src="/prettify/prettify.js"></script><script type="text/javascript" src="/prettify/fix_code_tags.js"></script></head><body><div class="wrapper"><header class="header"><div class="actions"><iframe src="//ghbtns.com/github-btn.html?user=elasticsearch&amp;repo=elasticsearch-net&amp;type=fork&amp;count=true" allowtransparency="true" frameborder="0" scrolling="0" width="95" height="20"></iframe><iframe src="//ghbtns.com/github-btn.html?user=elasticsearch&amp;repo=elasticsearch-net&amp;type=watch&amp;count=true" allowtransparency="true" frameborder="0" scrolling="0" width="110" height="20"></iframe></div><img src="/images/elasticsearch-net-nuget-icon.png" width="48" height="48"/><h1>Elasticsearch.Net & NEST</h1><p>Documentation</p></header><div class="divide"></div><div class="middle"><div class="container"><main class="content"><h1 id="breaking-changes">Breaking changes</h1>
3+
<h2 id="elasticsearch-1-0">Elasticsearch 1.0</h2>
4+
<p>Elasticsearch 1.0 comes with it&#39;s own set of breaking changes which <a href="http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/breaking-changes.html">are all documented in the elasticsearch documentation</a>. This page describes breaking changes NEST introduces in its 1.0 release and to an extend how you should handle Elasticsearch 1.0 changes in your exisiting code base using NEST prior to NEST 1.0.</p>
5+
<h2 id="nest-1-0">NEST 1.0</h2>
6+
<h3 id="strong-named-packages">Strong named packages</h3>
7+
<p>Prior to 1.0 NEST came with a <code>NEST</code> and <code>NEST.Signed</code> nuget package. In 1.0 there is one package called <code>NEST</code> which is a signed strong named assembly. We follow the example of JSON.NET and only change our <code>AssemblyVersion</code> on major releases only update the <code>AssemblyFileVersion</code> for every release. This way you get most of the benefits of unsigned assemblies while still providing support for developers who&#39;s business guidelines mandates the usage of signed assemblies.</p>
8+
<h3 id="ielasticclient">IElasticClient</h3>
9+
<p>The outer layer of NEST has been completely rewritten from scratch. Many calls will now have a different signature. Although the most common ones have been reimplemented as <a href="http://github.com/elasticsearch/elasticsearch-net/tree/master/src/Nest/ConvenienceExtensions">extensions methods</a>. Two notable changes should be outlined though. </p>
10+
<h4 id="get-is-now-called-source-">Get() is now called Source()</h4>
11+
<p>When I first wrote NEST back in 2010 I though it would be handy if the Get() operation returned only the document and if you want the full envelopped elasticsearch response you&#39;d use <code>GetFull()</code>. This was rather confusing and on top of that Elasticsearch 1.0 now has it&#39;s own endpoint for getting JUST the document <code>_source</code>.
12+
Similarily <code>GetMany()</code> is now called <code>SourceMany()</code>.</p>
13+
<h3 id="renamed-queryresponse-to-searchresponse">Renamed QueryResponse to SearchResponse</h3>
14+
<p>The fact that <code>client.Search&lt;T&gt;()</code> returns a <code>QueryResponse&lt;T&gt;</code> and not a <code>SearchResponse&lt;T&gt;</code> never felt right to me, NEST 1.0 therefor renamed <code>QueryResponse&lt;T&gt;</code> to <code>SearchResponse&lt;T&gt;</code></p>
15+
<h4 id="alias-helpers">Alias helpers</h4>
16+
<p>NEST 0.12.0 had some alias helpers, <code>SwapAlias()</code>, <code>GetIndicesPointingToAlias()</code> these have been removed in favor of just <code>Alias()</code> and <code>GetAliases()</code>. Especially the later could benefit from some extension methods that make the common use cases a bit easier to program with. These did not make the beta release.</p>
17+
<h4 id="fields-vs-sourceinclude-">Fields() vs SourceInclude()</h4>
18+
<p>Prior to Elasticsearch you could specify to return only certain fields and they would return like this:</p>
19+
<pre><code>...
20+
&quot;fields&quot; {
21+
&quot;name&quot; : &quot;NEST&quot;
22+
&quot;followers.firstName: [&quot;Martijn&quot;, &quot;John&quot;, ...]
23+
}
24+
...
25+
</code></pre><p>In many case this could be mapped to the type of DTO you give search (i.e in <code>.Search&lt;DTO&gt;()</code>). Elasticsearch 1.0 now always returns the fields as arrays.</p>
26+
<pre><code>...
27+
&quot;fields&quot; {
28+
&quot;name&quot; : [&quot;NEST&quot;]
29+
&quot;followers.firstName: [&quot;Martijn&quot;, &quot;John&quot;, ...]
30+
}
31+
...
32+
</code></pre><p>NEST 1.0 still supports this but is now a bit more verbose in how it supports mapping the fields back:</p>
33+
<pre><code>var fields = _client.Get&lt;DTO&gt;(g =&gt; g
34+
.Id(4)
35+
.Fields(f =&gt; f.Name, f =&gt; f.Followers.First().FirstName)
36+
).Fields;
37+
var name = fields.FieldValue&lt;DTO, string&gt;(f =&gt; f.Name);
38+
var list = fields.FieldValue&lt;DTO, string&gt;(f=&gt;f.Followers[0].FirstName);
39+
</code></pre><p><code>name</code> and <code>list</code> are of type <code>string[]</code> </p>
40+
<h3 id="documentswithmetadata">DocumentsWithMetaData</h3>
41+
<p>When you do a search with NEST 0.12 you&#39;d get back a <code>QueryResponse&lt;T&gt;</code> with two ways to loop over your results. <code>.Documents</code> is an <code>IEnumerable&lt;T&gt;</code> and <code>.DocumentsWithMetaData</code> is and <code>IEnumerable&lt;IHit&lt;T&gt;&gt;</code> depending on your needs one of them might be easier to use.</p>
42+
<p>Starting from NEST 1.0 <code>.DocumentsWithMetaData</code> is now called simply <code>.Hits</code>.</p>
43+
<h3 id="int-properties">int Properties</h3>
44+
<p>In quite a few places values that should have been <code>long</code> were mapped as <code>int</code> in NEST 0.12.0 which could be troublesome if you for instance have more than <code>2,147,483,647</code> matching documents. In my preperations for this release I helped port one of my former employees applications to Elasticsearch 1.1 and NEST 1.0 and found that this change had the most impact on the application and all of its models. </p>
45+
<h1 id="found-another-breaking-change-">Found another breaking change?</h1>
46+
<p>If you found another breaking chage please let us know on <a href="http://www.github.com/elasticsearch/elasticsearch-net/issues">the github issues</a></p>
47+
</main></div><aside class="left-sidebar"><aside id="menu"><ul><li><a href="/">Home</a><a href="/contributing.html">Contributing</a><a href="/building.html">Building</a><a href="/breaking-changes.html" class="selected">1.0 Breaking Changes</a><a href="https://github.com/elasticsearch/elasticsearch-net/releases">Release Notes</a></li></ul><ul id="elasticsearch-net"><h4 class="title">Elasticsearch.Net</h4><ul><li><a href="/elasticsearch-net/quick-start.html">Quick Start</a></li><li><a href="/elasticsearch-net/connecting.html">Connecting</a></li><li><a href="/elasticsearch-net/cluster-failover.html">Cluster failover</a></li><li><a href="/elasticsearch-net/building-requests.html">Building requests</a></li><li><a href="/elasticsearch-net/handling-responses.html">Handling responses</a></li><li><a href="/elasticsearch-net/errors.html">Errors</a></li></ul></ul><ul id="nest"><h4 class="title">NEST</h4><ul><li><a href="/nest/quick-start.html">Quick Start</a></li><li><a href="/nest/connecting.html">Connecting</a></li><li><a href="/nest/index-type-inference.html">Type/Index Inference</a></li><li><a href="/nest/handling-responses.html">Handling responses</a></li><li><a href="/nest/writing-queries.html">Writing queries</a></li></ul><li><h4><a href="/nest/core/"><i class="fa fa-chevron-right"></i>Core</a></h4></li><li><h4><a href="/nest/indices/aliases.html"><i class="fa fa-chevron-right"></i>Indices</a></h4></li><li><h4><a href="/nest/cluster/health.html"><i class="fa fa-chevron-right"></i>Cluster</a></h4></li><li><h4><a href="/nest/search/basics.html"><i class="fa fa-chevron-right"></i>Search</a></h4></li><li><h4><a href="/nest/facets/handling.html"><i class="fa fa-chevron-right"></i>Facets</a></h4></li><li><h4><a href="/nest/query/text.html"><i class="fa fa-chevron-right"></i>Query DSL</a></h4></li><li><h4><a href="/nest/filter/and.html"><i class="fa fa-chevron-right"></i>Filter DSL</a></h4></li></ul></aside></aside></div><footer class="footer"></footer></div></body></html>

new_docs/build/building.html

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<html><head><title>Nest - Building</title><meta http-equiv="cache-control" content="no-cache"/><meta http-equiv="pragma" content="no-cache"/><meta http-equiv="content-type" content="text/html;charset=utf-8"/><meta http-equiv="expires" content="0"/><meta name="description" content="elasticsearch"/><meta name="keywords" content="nest, elasticsearch, .net, client"/><meta name="author" content="martijn laarman"/><meta name="viewport" content="width=device-width, initial-scale=1"/>
2+
<script src="/scripts/html5shiv.js"></script><link rel="stylesheet" type="text/css" href="/styles/normalize.css"/><link rel="stylesheet" type="text/css" href="/styles/layout.css"/><link rel="stylesheet" type="text/css" href="/styles/pygments.css"/><link rel="stylesheet" type="text/css" href="/styles/pygments.css"/><link rel="stylesheet" type="text/css" href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css"/><link href="//fonts.googleapis.com/css?family=Ubuntu+Mono|Open+Sans" rel="stylesheet" type="text/css"/><link href="/prettify/prettify.css" type="text/css" rel="stylesheet"/><link href="/prettify/sunburst.css" type="text/css" rel="stylesheet"/><script src="//code.jquery.com/jquery.min.js" type="text/javascript"></script><script type="text/javascript" src="/prettify/prettify.js"></script><script type="text/javascript" src="/prettify/fix_code_tags.js"></script></head><body><div class="wrapper"><header class="header"><div class="actions"><iframe src="//ghbtns.com/github-btn.html?user=elasticsearch&amp;repo=elasticsearch-net&amp;type=fork&amp;count=true" allowtransparency="true" frameborder="0" scrolling="0" width="95" height="20"></iframe><iframe src="//ghbtns.com/github-btn.html?user=elasticsearch&amp;repo=elasticsearch-net&amp;type=watch&amp;count=true" allowtransparency="true" frameborder="0" scrolling="0" width="110" height="20"></iframe></div><img src="/images/elasticsearch-net-nuget-icon.png" width="48" height="48"/><h1>Elasticsearch.Net & NEST</h1><p>Documentation</p></header><div class="divide"></div><div class="middle"><div class="container"><main class="content"><h1 id="building">Building</h1>
3+
<p>Building <code>Elasticsearch.Net</code> and <code>NEST</code> should be super straightforward. Just fork and clone <a href="https://github.com/elasticsearch/elasticsearch-net">the repository on github</a> and open <code>Elasticsearch.sln</code> and press build. Alternatively you can run <code>build.bat</code> from the root to build everything the resulting assemblies will be exported to <code>build/output</code>. </p>
4+
<p>NEST builds strong named assemblies but if you do not have the key the build script and <code>pre build events</code> are in place to generate one for you. The project very much believes in the <a href="http://www.khalidabuhakmeh.com/the-f5-manifesto-for-net-developers">F5 manifesto</a></p>
5+
<h2 id="buildscript">Buildscript</h2>
6+
<p>The buildscript depends on quite a few tools</p>
7+
<ul>
8+
<li>FAKE - F# make to script the build</li>
9+
<li>Nuget - used to install some of the dependencies</li>
10+
<li>NUnit - to run the tests after build</li>
11+
<li>Nodejs - Use to generate the documentation</li>
12+
<li>Wintersmith - Used to generate the documentation</li>
13+
<li>sn.exe - used to check the validity of the signed assemblies during build/release procedures</li>
14+
</ul>
15+
<p>All of these will be downloaded and installed locally in your repository the first time you run <code>build.bat</code> </p>
16+
<p><strong>NOTE:</strong> none of these are needed to build from within Visual Studio</p>
17+
<h3 id="build-target">Build target</h3>
18+
<p>Running <code>build.bat</code> will default to running the <code>Build</code> target which will create certificates in the right place if they do not exist, build the application and run all the unit tests. The resulting assemblies are placed in <code>build/output</code>.</p>
19+
<h3 id="docpreview-target">DocPreview target</h3>
20+
<p>Running <code>build.bat DocPreview</code> will serve the files under <code>new_docs</code> at <code>http://localhost:8080</code> with live-reload setup. Usefull only when you are working on documentation.</p>
21+
<h3 id="release-target">Release target</h3>
22+
<p>Running <code>build.bat Release versionnumber</code> will create nuget packages in <code>output/_packages</code>. This could be useful if you need a feature that is not yet released you can temporarily switch to local nuget packages.</p>
23+
<p>Release will call the build target and in addition patch the assembly files, build the documentation files. </p>
24+
</main></div><aside class="left-sidebar"><aside id="menu"><ul><li><a href="/">Home</a><a href="/contributing.html">Contributing</a><a href="/building.html" class="selected">Building</a><a href="/breaking-changes.html">1.0 Breaking Changes</a><a href="https://github.com/elasticsearch/elasticsearch-net/releases">Release Notes</a></li></ul><ul id="elasticsearch-net"><h4 class="title">Elasticsearch.Net</h4><ul><li><a href="/elasticsearch-net/quick-start.html">Quick Start</a></li><li><a href="/elasticsearch-net/connecting.html">Connecting</a></li><li><a href="/elasticsearch-net/cluster-failover.html">Cluster failover</a></li><li><a href="/elasticsearch-net/building-requests.html">Building requests</a></li><li><a href="/elasticsearch-net/handling-responses.html">Handling responses</a></li><li><a href="/elasticsearch-net/errors.html">Errors</a></li></ul></ul><ul id="nest"><h4 class="title">NEST</h4><ul><li><a href="/nest/quick-start.html">Quick Start</a></li><li><a href="/nest/connecting.html">Connecting</a></li><li><a href="/nest/index-type-inference.html">Type/Index Inference</a></li><li><a href="/nest/handling-responses.html">Handling responses</a></li><li><a href="/nest/writing-queries.html">Writing queries</a></li></ul><li><h4><a href="/nest/core/"><i class="fa fa-chevron-right"></i>Core</a></h4></li><li><h4><a href="/nest/indices/aliases.html"><i class="fa fa-chevron-right"></i>Indices</a></h4></li><li><h4><a href="/nest/cluster/health.html"><i class="fa fa-chevron-right"></i>Cluster</a></h4></li><li><h4><a href="/nest/search/basics.html"><i class="fa fa-chevron-right"></i>Search</a></h4></li><li><h4><a href="/nest/facets/handling.html"><i class="fa fa-chevron-right"></i>Facets</a></h4></li><li><h4><a href="/nest/query/text.html"><i class="fa fa-chevron-right"></i>Query DSL</a></h4></li><li><h4><a href="/nest/filter/and.html"><i class="fa fa-chevron-right"></i>Filter DSL</a></h4></li></ul></aside></aside></div><footer class="footer"></footer></div></body></html>

0 commit comments

Comments
 (0)