Browse Source

go fmt

tags/v0.8.0
Steve Yen 8 months ago
parent
commit
950ca8b435
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      index/store/moss/lower_test.go
  2. +1
    -1
      mapping/mapping_test.go
  3. +1
    -1
      search/collector/topn.go

+ 1
- 1
index/store/moss/lower_test.go View File

@@ -27,7 +27,7 @@ func openWithLower(t *testing.T, mo store.MergeOperator) (string, store.KVStore)
tmpDir, _ := ioutil.TempDir("", "mossStore")

config := map[string]interface{}{
"path": tmpDir,
"path": tmpDir,
"mossLowerLevelStoreName": "mossStore",
}



+ 1
- 1
mapping/mapping_test.go View File

@@ -1140,4 +1140,4 @@ func TestMappingPointerToTimeBug1152(t *testing.T) {
if _, ok := doc.Fields[0].(*document.DateTimeField); !ok {
t.Fatalf("expected field to be type *document.DateTimeField, got %T", doc.Fields[0])
}
}
}

+ 1
- 1
search/collector/topn.go View File

@@ -141,7 +141,7 @@ func (hc *TopNCollector) Collect(ctx context.Context, searcher search.Searcher,
searchContext := &search.SearchContext{
DocumentMatchPool: search.NewDocumentMatchPool(backingSize+searcher.DocumentMatchPoolSize(), len(hc.sort)),
Collector: hc,
IndexReader: reader,
IndexReader: reader,
}

hc.dvReader, err = reader.DocValueReader(hc.neededFields)


Loading…
Cancel
Save