Skip to content

Commit

Permalink
Put _id, _type and _index in INTERNAL_FIELDS rather than KEYWORDS
Browse files Browse the repository at this point in the history
  • Loading branch information
droberts195 committed Apr 16, 2019
1 parent 51c3e6f commit cb0c7e6
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ public class ElasticsearchMappingsTests extends ESTestCase {
ElasticsearchMappings.NESTED,
ElasticsearchMappings.PROPERTIES,
ElasticsearchMappings.TYPE,
ElasticsearchMappings.WHITESPACE,
ElasticsearchMappings.WHITESPACE
);

private static List<String> INTERNAL_FIELDS = Arrays.asList(
GetResult._ID,
GetResult._INDEX,
GetResult._TYPE
Expand All @@ -80,6 +83,7 @@ public void testResultsMapppingReservedFields() throws Exception {

Set<String> expected = collectResultsDocFieldNames();
expected.removeAll(overridden);
expected.addAll(INTERNAL_FIELDS);

compareFields(expected, ReservedFieldNames.RESERVED_RESULT_FIELD_NAMES);
}
Expand All @@ -95,6 +99,7 @@ public void testConfigMapppingReservedFields() throws Exception {

Set<String> expected = collectConfigDocFieldNames();
expected.removeAll(overridden);
expected.addAll(INTERNAL_FIELDS);

compareFields(expected, ReservedFieldNames.RESERVED_CONFIG_FIELD_NAMES);
}
Expand Down

0 comments on commit cb0c7e6

Please sign in to comment.