Skip to content

Commit 89762fb

Browse files
committed
refactored linq boolean query syntax, it now also takes into account that you can't simply join a bool query with a minimum_number_should_match as it changes the meaning of the query
1 parent ca7d8fb commit 89762fb

Some content is hidden

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

41 files changed

+309
-86612
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ build/tmp
3636
build/tmp/*
3737
build/_out/*
3838
build/keys/private.snk
39+
build/keys/keypair.snk
3940
!build/tools/*
4041
!build/tools/scriptcs/*
4142
/dep/Newtonsoft.Json.4.0.2

build/NESTBuild.proj

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<PropertyGroup>
1414
<Configuration Condition="'$(Configuration)'==''" >Release</Configuration>
1515
<BuildDir>$(MSBuildProjectDirectory)\tmp</BuildDir>
16+
<BuildDirSigned>$(MSBuildProjectDirectory)\tmp-signed</BuildDirSigned>
1617
<SolutionFile>$(SrcDir)\Nest.sln</SolutionFile>
1718
</PropertyGroup>
1819

@@ -56,30 +57,25 @@
5657
<!-- First copy the nuspec template files to the build dir -->
5758
<Copy SourceFiles="..\build\NEST.nuspec" DestinationFolder="$(BuildDir)" />
5859
<Copy SourceFiles="..\build\NEST.Signed.nuspec" DestinationFolder="$(BuildDir)" />
59-
<Copy SourceFiles="..\build\Nest.Connection.Thrift.nuspec" DestinationFolder="$(BuildDir)" />
60-
<Copy SourceFiles="..\build\Nest.Connection.Thrift.Signed.nuspec" DestinationFolder="$(BuildDir)" />
60+
<Copy SourceFiles="..\build\Nest.Connection.Thrift.nuspec" DestinationFolder="$(BuildDirSigned)" />
61+
<Copy SourceFiles="..\build\Nest.Connection.Thrift.Signed.nuspec" DestinationFolder="$(BuildDirSigned)" />
6162
<!-- Copy the source files to the package dir -->
6263
<Copy SourceFiles="@(MainBinaries)" DestinationFolder="$(BuildDir)\lib\NET4\" />
6364
<Copy SourceFiles="@(ThriftBinaries)" DestinationFolder="$(BuildDir)\lib\NET4\" />
65+
<!-- Copy the source files to the package dir for the signed nugets -->
66+
<Copy SourceFiles="@(MainBinaries)" DestinationFolder="$(BuildDirSigned)\lib\NET4\" />
67+
<Copy SourceFiles="@(ThriftBinaries)" DestinationFolder="$(BuildDirSigned)\lib\NET4\" />
6468

6569
<!-- Get the version number of the main FV assembly to insert into the nuspec files -->
6670
<GetAssemblyIdentity AssemblyFiles="$(BuildDir)\lib\NET4\Nest.dll">
6771
<Output TaskParameter="Assemblies" ItemName="AsmInfo" />
6872
</GetAssemblyIdentity>
6973

70-
<!-- ilmerge.exe Nest.dll /keyfile:PublicKey.snk /out:out\Nest.dll -->
71-
7274
<!-- Create signed copies -->
73-
74-
<!--<Exec WorkingDirectory="$(BuildDir)"
75-
Command="$(MSBuildProjectDirectory)\tools\nuget.exe pack $(BuildDir)\NEST.nuspec" />-->
76-
77-
<Exec WorkingDirectory="$(BuildDir)"
78-
Command='$(MSBuildProjectDirectory)\tools\ilmerge.exe $(BuildDir)\lib\NET4\Nest.dll /keyfile:$(MSBuildProjectDirectory)\keys\public.snk /out:$(BuildDir)\lib\NET4\Nest.Signed.dll /targetplatform:v4,"%ProgramFiles(x86)%\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0" /delaysign' />
79-
80-
81-
<Exec WorkingDirectory="$(BuildDir)"
82-
Command='$(MSBuildProjectDirectory)\tools\ilmerge.exe $(BuildDir)\lib\NET4\Nest.Connection.Thrift.dll /keyfile:$(MSBuildProjectDirectory)\keys\public.snk /out:$(BuildDir)\lib\NET4\Nest.Connection.Thrift.Signed.dll /targetplatform:v4,"%ProgramFiles(x86)%\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0" /delaysign' />
75+
<Exec WorkingDirectory="$(BuildDirSigned)"
76+
Command='$(MSBuildProjectDirectory)\tools\ilmerge.exe $(<BuildDirSigned>)\lib\NET4\Nest.dll /keyfile:$(MSBuildProjectDirectory)\keys\keypair.snk /out:$(<BuildDirSigned>)\lib\NET4\Nest.dll /targetplatform:v4,"%ProgramFiles(x86)%\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0"' />
77+
<Exec WorkingDirectory="$(BuildDirSigned)"
78+
Command='$(MSBuildProjectDirectory)\tools\ilmerge.exe $(<BuildDirSigned>)\lib\NET4\Nest.Connection.Thrift.dll /keyfile:$(MSBuildProjectDirectory)\keys\keypair.snk /out:$(<BuildDirSigned>)\lib\NET4\Nest.Connection.Thrift.dll /targetplatform:v4,"%ProgramFiles(x86)%\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0"' />
8379

8480
<!-- insert the version number into the nuspec files -->
8581
<XmlUpdate
@@ -99,8 +95,8 @@
9995
XPath="/n:package/n:metadata/n:version"
10096
Value="%(AsmInfo.Version)" />
10197

102-
<Exec WorkingDirectory="$(BuildDir)"
103-
Command="$(MSBuildProjectDirectory)\tools\nuget.exe pack $(BuildDir)\NEST.Signed.nuspec" />
98+
<Exec WorkingDirectory="$(BuildDirSigned)"
99+
Command="$(MSBuildProjectDirectory)\tools\nuget.exe pack $(BuildDirSigned)\NEST.Signed.nuspec" />
104100

105101
<XmlUpdate
106102
Namespace="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"
@@ -119,16 +115,19 @@
119115
XPath="/n:package/n:metadata/n:version"
120116
Value="%(AsmInfo.Version)" />
121117

122-
<Exec WorkingDirectory="$(BuildDir)"
123-
Command="$(MSBuildProjectDirectory)\tools\nuget.exe pack $(BuildDir)\Nest.Connection.Thrift.Signed.nuspec" />
118+
<Exec WorkingDirectory="$(BuildDirSigned)"
119+
Command="$(MSBuildProjectDirectory)\tools\nuget.exe pack $(BuildDirSigned)\Nest.Connection.Thrift.Signed.nuspec" />
124120

125121

126122

127123
<ItemGroup>
128124
<Packages Include="$(BuildDir)\*.nupkg" />
125+
<PackagesSigned Include="$(BuildDirSigned)\*.nupkg" />
129126
</ItemGroup>
130127
<Copy SourceFiles="@(Packages)" DestinationFolder="$(BuildDir)\..\_out" />
128+
<Copy SourceFiles="@(PackagesSigned)" DestinationFolder="$(BuildDirSigned)\..\_out" />
131129

132130
<RemoveDir Directories="$(BuildDir)" />
131+
<RemoveDir Directories="$(BuildDirSigned)" />
133132
</Target>
134133
</Project>

build/generate-raw-client/Views/GeneratedQueryStringParameters.cshtml

Lines changed: 0 additions & 14 deletions
This file was deleted.

build/generate-raw-client/Views/IRawElasticClient.cshtml

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)