Skip to content

Commit 3b43b02

Browse files
committed
fixed myget build due to json file not being copied to the output directoty
1 parent 07bc7a6 commit 3b43b02

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

src/Profiling/Profiling.Indexing/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Program
1010
{
1111
static IEnumerable<Tester> Testers()
1212
{
13-
yield return new ThriftTester();
13+
//yield return new ThriftTester();
1414
yield return new HttpTester();
1515
yield return new HttpClientTester();
1616
}

src/Profiling/Profiling.Indexing/Tester.cs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,27 @@ protected class IndexResults
122122

123123
protected IndexResults GenerateAndIndex(int numMessages, int bufferSize)
124124
{
125+
126+
//settings from http://benchmarks.elasticsearch.org/
127+
125128
var msgGenerator = new MessageGenerator();
126129
var partitionedMessages = msgGenerator.Generate(numMessages).Partition(bufferSize);
127130
this.Client.CreateIndex(this.IndexName, c => c
128131
.NumberOfReplicas(0)
129132
.NumberOfShards(1)
130-
.Settings(s => s.Add("refresh_interval", "-1"))
133+
.Settings(s => s
134+
.Add("refresh_interval", "30s")
135+
.Add("index.store.type", "mmapfs")
136+
.Add("index.store.throttle.type", "none")
137+
.Add("indices.store.throttle.type", "none")
138+
.Add("index.number_of_shards", 6)
139+
.Add("index.number_of_replicas", 0)
140+
.Add("indices.memory.index_buffer_size", "10%")
141+
.Add("index.translog.flush_threshold_size", "4g")
142+
.Add("index.translog.flush_threshold_ops", 500000)
143+
.Add("index.merge.scheduler.max_thread_count", 3)
144+
.Add("index.merge.scheduler.max_merge_count", 6)
145+
)
131146
.AddMapping<Message>(p=>p.MapFromAttributes())
132147
);
133148
var sw = Stopwatch.StartNew();

src/Tests/Nest.Tests.Unit/Nest.Tests.Unit.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,9 @@
955955
</None>
956956
</ItemGroup>
957957
<ItemGroup>
958-
<Content Include="Core\Map\Properties\MultiFieldPropertyWithFullPath.json" />
958+
<None Include="Core\Map\Properties\MultiFieldPropertyWithFullPath.json">
959+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
960+
</None>
959961
</ItemGroup>
960962
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
961963
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />

0 commit comments

Comments
 (0)