Skip to content

Commit

Permalink
_uid is no longer searchable which failed our _field_caps integ test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mpdreamz committed Nov 16, 2017
1 parent 52540d9 commit 6c856a8
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
}

0 comments on commit 6c856a8

Please sign in to comment.