Steve Yen 3 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

@@ -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

@@ -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

@@ -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)