From 1c1985d64b824115d8c24247e20d7c153efeb303 Mon Sep 17 00:00:00 2001 From: Mpdreamz Date: Tue, 10 Oct 2017 16:27:41 +0200 Subject: [PATCH] _uid is no longer searchable which failed our _field_caps integ test --- .../FieldCapabilities/FieldCapabilitiesApiTests.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Tests/Search/FieldCapabilities/FieldCapabilitiesApiTests.cs b/src/Tests/Search/FieldCapabilities/FieldCapabilitiesApiTests.cs index 5bfdb609752..649be7e5187 100644 --- a/src/Tests/Search/FieldCapabilities/FieldCapabilitiesApiTests.cs +++ b/src/Tests/Search/FieldCapabilities/FieldCapabilitiesApiTests.cs @@ -42,13 +42,18 @@ protected override void ExpectResponse(IFieldCapabilitiesResponse response) var uidFieldCaps = response.Fields.First(kv => kv.Value.Uid != null).Value.Uid; uidFieldCaps.Aggregatable.Should().BeTrue(); - uidFieldCaps.Searchable.Should().BeTrue(); + uidFieldCaps.Searchable.Should().BeFalse(); uidFieldCaps = response.Fields["_uid"].Uid; uidFieldCaps.Should().NotBeNull(); uidFieldCaps.Aggregatable.Should().BeTrue(); - uidFieldCaps.Searchable.Should().BeTrue(); + uidFieldCaps.Searchable.Should().BeFalse(); + + response.Fields.Should().ContainKey("state"); + var stateCapabilities = response.Fields["state"].Keyword; + stateCapabilities.Aggregatable.Should().BeTrue(); + stateCapabilities.Searchable.Should().BeTrue(); } } }