File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
server/src/test/java/org/elasticsearch/index/mapper Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 1515import org .elasticsearch .common .bytes .BytesReference ;
1616import org .elasticsearch .common .compress .CompressedXContent ;
1717import org .elasticsearch .common .settings .Settings ;
18+ import org .elasticsearch .index .IndexMode ;
1819import org .elasticsearch .index .IndexVersion ;
1920import org .elasticsearch .index .IndexVersions ;
2021import org .elasticsearch .index .mapper .MapperService .MergeReason ;
@@ -313,6 +314,9 @@ public void testIsMetadataField() throws IOException {
313314 if (NestedPathFieldMapper .NAME .equals (builtIn ) && version .before (IndexVersions .V_8_0_0 )) {
314315 continue ; // Nested field does not exist in the 7x line
315316 }
317+ if (mapperService .getIndexSettings ().getMode () == IndexMode .STANDARD && (builtIn .equals ("_tsid" ) || builtIn .equals ("_ts_routing_hash" ))) {
318+ continue ; // both these fields are not available in Standard index mode
319+ }
316320 assertTrue ("Expected " + builtIn + " to be a metadata field for version " + version , mapperService .isMetadataField (builtIn ));
317321 }
318322 }
You can’t perform that action at this time.
0 commit comments