File tree Expand file tree Collapse file tree 4 files changed +53
-2
lines changed
Nest.Tests.Unit/Core/Index Expand file tree Collapse file tree 4 files changed +53
-2
lines changed Original file line number Diff line number Diff line change 1818 <tags >elasticsearch elastic search lucene nest</tags >
1919 </metadata >
2020 <files >
21- <file src =" lib\**\Nest.dll " target =" lib" />
21+ <file src =" lib\**\Nest.* " target =" lib" />
2222 </files >
2323</package >
Original file line number Diff line number Diff line change 1919 <tags >elasticsearch elastic search lucene nest</tags >
2020 </metadata >
2121 <files >
22- <file src =" lib\**\Nest.Connection.Thrift.dll " target =" lib" />
22+ <file src =" lib\**\Nest.Connection.Thrift.* " target =" lib" />
2323 </files >
2424</package >
Original file line number Diff line number Diff line change 2929 <CodeAnalysisIgnoreBuiltInRules >false</CodeAnalysisIgnoreBuiltInRules >
3030 <WarningLevel >4</WarningLevel >
3131 <Optimize >False</Optimize >
32+ <DocumentationFile >bin\Debug\Nest.Connection.Thrift.XML</DocumentationFile >
3233 </PropertyGroup >
3334 <PropertyGroup Condition =" '$(Configuration)|$(Platform)' == 'Release|AnyCPU'" >
3435 <OutputPath >bin\Release\</OutputPath >
Original file line number Diff line number Diff line change 1+ using System ;
2+ using System . Collections . Generic ;
3+ using System . Linq ;
4+ using System . Text ;
5+ using NUnit . Framework ;
6+ using Newtonsoft . Json ;
7+ using Newtonsoft . Json . Linq ;
8+
9+ using Nest ;
10+ using Newtonsoft . Json . Converters ;
11+ using Nest . Resolvers . Converters ;
12+ using Nest . Tests . MockData . Domain ;
13+
14+ namespace Nest . Tests . Unit . Core . Index
15+ {
16+ [ TestFixture ]
17+ public class IndexTests : BaseJsonTests
18+ {
19+ [ Test ]
20+ public void IndexParameters ( )
21+ {
22+ var o = new ElasticSearchProject { Id = 1 , Name = "Test" } ;
23+ var result = this . _client . Index ( o , new IndexParameters
24+ {
25+ Version = "1" ,
26+
27+ } ) ;
28+ var status = result . ConnectionStatus ;
29+ StringAssert . Contains ( "version=1" , status . RequestUrl ) ;
30+ }
31+ [ Test ]
32+ public void GetSupportsVersioning ( )
33+ {
34+ //TODO: investigate version on get
35+ //The elasticsearch docs make no mention of being able to specify version
36+ //http://www.elasticsearch.org/guide/reference/api/get.html
37+
38+ //this._client.Get<ElasticSearchProject>(g=>g.);
39+ }
40+ [ Test ]
41+ public void UpdateSupportsVersioning ( )
42+ {
43+ //TODO: investigate version on update
44+ //The elasticsearch docs make no mention of being able to specify version
45+ //http://www.elasticsearch.org/guide/reference/api/get.html
46+
47+ //this._client.Get<ElasticSearchProject>(g=>g.);
48+ }
49+ }
50+ }
You can’t perform that action at this time.
0 commit comments