diff options
Diffstat (limited to 'related/inverted_index_test.go')
-rw-r--r-- | related/inverted_index_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/related/inverted_index_test.go b/related/inverted_index_test.go index c7348e088..72b2f3252 100644 --- a/related/inverted_index_test.go +++ b/related/inverted_index_test.go @@ -91,7 +91,7 @@ func TestCardinalityThreshold(t *testing.T) { config := Config{ Threshold: 90, IncludeNewer: false, - Indices: IndexConfigs{ + Indices: IndicesConfig{ IndexConfig{Name: "tags", Weight: 50, CardinalityThreshold: 79}, IndexConfig{Name: "keywords", Weight: 65, CardinalityThreshold: 90}, }, @@ -125,7 +125,7 @@ func TestSearch(t *testing.T) { config := Config{ Threshold: 90, IncludeNewer: false, - Indices: IndexConfigs{ + Indices: IndicesConfig{ IndexConfig{Name: "tags", Weight: 50}, IndexConfig{Name: "keywords", Weight: 65}, }, @@ -293,7 +293,7 @@ func BenchmarkRelatedNewIndex(b *testing.B) { cfg := Config{ Threshold: 50, - Indices: IndexConfigs{ + Indices: IndicesConfig{ IndexConfig{Name: "tags", Weight: 100}, IndexConfig{Name: "keywords", Weight: 200}, }, @@ -334,7 +334,7 @@ func BenchmarkRelatedMatchesIn(b *testing.B) { cfg := Config{ Threshold: 20, - Indices: IndexConfigs{ + Indices: IndicesConfig{ IndexConfig{Name: "tags", Weight: 100}, IndexConfig{Name: "keywords", Weight: 200}, }, |