Skip to content

Commit 7d7825d

Browse files
committed
xml doc for thrift connection, nuspecs now include pdb and xml files
1 parent c14574e commit 7d7825d

File tree

4 files changed

+53
-2
lines changed

4 files changed

+53
-2
lines changed

build/NEST.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
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>

build/Nest.Connection.Thrift.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
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>

src/Nest.Connection.Thrift/Nest.Connection.Thrift.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
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>
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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+
}

0 commit comments

Comments
 (0)