diff options
Diffstat (limited to 'config-model/src/test/java/com/yahoo/searchdefinition/document/HnswIndexParamsTestCase.java')
-rw-r--r-- | config-model/src/test/java/com/yahoo/searchdefinition/document/HnswIndexParamsTestCase.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/config-model/src/test/java/com/yahoo/searchdefinition/document/HnswIndexParamsTestCase.java b/config-model/src/test/java/com/yahoo/searchdefinition/document/HnswIndexParamsTestCase.java index e3dcc925e5e..44379d25012 100644 --- a/config-model/src/test/java/com/yahoo/searchdefinition/document/HnswIndexParamsTestCase.java +++ b/config-model/src/test/java/com/yahoo/searchdefinition/document/HnswIndexParamsTestCase.java @@ -17,29 +17,37 @@ public class HnswIndexParamsTestCase { var empty = new HnswIndexParams(); var builder = new HnswIndexParams.Builder(); builder.setMaxLinksPerNode(7); + builder.setMultiThreadedIndexing(false); var one = builder.build(); builder.setNeighborsToExploreAtInsert(42); var three = builder.build(); builder.setMaxLinksPerNode(17); builder.setNeighborsToExploreAtInsert(500); + builder.setMultiThreadedIndexing(true); var four = builder.build(); assertThat(empty.maxLinksPerNode(), is(16)); assertThat(empty.neighborsToExploreAtInsert(), is(200)); + assertThat(empty.multiThreadedIndexing(), is(false)); assertThat(one.maxLinksPerNode(), is(7)); + assertThat(one.multiThreadedIndexing(), is(false)); assertThat(three.neighborsToExploreAtInsert(), is(42)); assertThat(four.maxLinksPerNode(), is(17)); assertThat(four.neighborsToExploreAtInsert(), is(500)); + assertThat(four.multiThreadedIndexing(), is(true)); var five = four.overrideFrom(Optional.of(empty)); assertThat(five.maxLinksPerNode(), is(17)); assertThat(five.neighborsToExploreAtInsert(), is(500)); + assertThat(five.multiThreadedIndexing(), is(true)); var six = four.overrideFrom(Optional.of(one)); assertThat(six.maxLinksPerNode(), is(7)); assertThat(six.neighborsToExploreAtInsert(), is(500)); + // This is explicitly set to false in 'one' + assertThat(six.multiThreadedIndexing(), is(false)); } } |