This commit is contained in:
Jim Ferenczi 2015-12-30 19:55:47 +01:00
parent cce600ae57
commit 4986817c6d
1 changed files with 1 additions and 1 deletions

View File

@ -258,7 +258,7 @@ public class SimpleAllMapperTests extends ESSingleNodeTestCase {
}
tv_stored |= tv_positions || tv_payloads || tv_offsets;
if (randomBoolean()) {
mappingBuilder.field("similarity", similarity = randomBoolean() ? "BM25" : null);
mappingBuilder.field("similarity", similarity = "BM25");
}
mappingBuilder.endObject();
}