mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-24 17:09:48 +00:00
Fix AbstractSimpleEngineTests versioning tests.
Version is now stored on a distinct field, that AbstractSimpleEngineTests didn't correctly add before running tests. This generated a test failure when the version needed to be loaded from the index.
This commit is contained in:
parent
07546d4d8d
commit
85f54edf66
@ -129,6 +129,7 @@ public abstract class AbstractSimpleEngineTests {
|
||||
Field uidField = new Field("_uid", uid, UidFieldMapper.Defaults.FIELD_TYPE);
|
||||
Field versionField = new NumericDocValuesField("_version", 0);
|
||||
document.add(uidField);
|
||||
document.add(versionField);
|
||||
return new ParsedDocument(uidField, versionField, id, type, routing, timestamp, ttl, Arrays.asList(document), analyzer, source, mappingsModified);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user