Skip to content

Commit d90a816

Browse files
committed
build documentation
1 parent a1edc80 commit d90a816

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

new_docs/build/indices/templates.html

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
11
<!DOCTYPE html><html><head><title>Nest - Connecting</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"><link rel="stylesheet" type="text/css" href="/styles/layout.css"><link rel="stylesheet" type="text/css" href="/styles/pygments.css"><link href="http://fonts.googleapis.com/css?family=Ubuntu+Mono|Ubuntu" 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="http://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><section id="site"><div class="actions"><iframe src="http://ghbtns.com/github-btn.html?user=Mpdreamz&amp;repo=NEST&amp;type=fork&amp;count=true" allowtransparency="true" frameborder="0" scrolling="0" width="95" height="20"></iframe><iframe src="http://ghbtns.com/github-btn.html?user=Mpdreamz&amp;repo=NEST&amp;type=watch&amp;count=true" allowtransparency="true" frameborder="0" scrolling="0" width="110" height="20"></iframe></div><aside><ul id="top_left_menu"><h4>External</h4><li><a href="http://www.elasticsearch.org" target="_blank">Elasticsearch Docs</a></li><li><a href="http://mpdreamz.mit-license.org/" target="_blank">MIT license</a></li></ul></aside><section id="content"><aside id="menu"><ul id="top_left_menu"><li><a href="/">+ Concepts</a></li><li><a href="/core/" class="">+ Core</a></li><h4>- Indices</h4><ul><li><a href="/indices/aliases.html" class="">Aliases</a></li><li><a href="/indices/analyze.html" class="">Analyze</a></li><li><a href="/indices/create-indices.html" class="">Create Index</a></li><li><a href="/indices/delete-indices.html" class="">Delete Index</a></li><li><a href="/indices/open-close.html" class="">Open/Close Index</a></li><li><a href="/indices/get-settings.html" class="">Get Settings</a></li><li><a href="/indices/get-mapping.html" class="">Get Mapping</a></li><li><a href="/indices/put-mapping.html" class="">Put Mapping</a></li><li><a href="/indices/delete-mapping.html" class="">Delete Mapping</a></li><li><a href="/indices/refresh.html" class="">Refresh</a></li><li><a href="/indices/optimize.html" class="">Optimize</a></li><li><a href="/indices/flush.html" class="">Flush</a></li><li><a href="/indices/snapshot.html" class="">Snapshot</a></li><li><a href="/indices/update-settings.html" class="">Update Settings</a></li><li><a href="/indices/templates.html" class="selected">Templates</a></li><li><a href="/indices/stats.html" class="">Stats</a></li><li><a href="/indices/status.html" class="">Status</a></li><li><a href="/indices/segments.html" class="">Segments</a></li><li><a href="/indices/clear-cache.html" class="">Clear Cache</a></li><li><a href="/indices/indices-exists.html" class="">Indices Exists</a></li></ul><li><a href="/cluster/health.html" class="">+ Cluster</a></li><li><a href="/search/basics.html" class="">+ Search</a></li><li><a href="/facets/handling.html" class="">+ Facets</a></li><li><a href="/query/text.html" class="">+ Query DSL</a></li><li><a href="/filter/and.html" class="">+ Filter DSL</a></li></ul></aside><article><div id="content-margin-fix"><h1>Index Templates API</h1>
2-
<p>The index templates api is not currently mapped in NEST.</p>
2+
<p>Allows you to define templates on the cluster that are applied everytime an index is created.</p>
3+
<pre><code>var putResponse = this._client.PutTemplate(t=&gt;t
4+
.Name(&quot;put-template-with-settings&quot;)
5+
.Template(&quot;donotinfluencothertests-*&quot;)
6+
.Settings(s=&gt;s
7+
.Add(&quot;index.number_of_shards&quot;, 3)
8+
.Add(&quot;index.number_of_replicas&quot;, 2)
9+
)
10+
.AddMapping&lt;dynamic&gt;(s=&gt;s
11+
.TypeName(&quot;mytype&quot;)
12+
.DisableAllField()
13+
)
14+
);</code></pre>
315
</div></article></section></section></body></html>

0 commit comments

Comments
 (0)