Skip to content

Commit d321dc7

Browse files
committed
fixed three failng unit tests
1 parent c5e8510 commit d321dc7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/Nest/DSL/Query/FunctionScoreQueryDescriptor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ bool IQuery.IsConditionless
117117
get
118118
{
119119
return _forcedConditionless
120-
|| ((Self.Query == null || Self.Query.IsConditionless || Self.Filter == null || Self.Filter.IsConditionless)
120+
|| (((Self.Query == null || Self.Query.IsConditionless) && (Self.Filter == null || Self.Filter.IsConditionless))
121121
&& Self.RandomScore == null && Self.ScriptScore == null && !Self.Functions.HasAny());
122122
}
123123
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -854,6 +854,9 @@
854854
<None Include="Reproduce\Issue876.json">
855855
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
856856
</None>
857+
<None Include="Reproduce\PatchedTermsAggSort.json">
858+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
859+
</None>
857860
<None Include="Search\Aggregations\Terms\TermAggregationSerializes.json">
858861
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
859862
</None>

0 commit comments

Comments
 (0)