Add KustomizationDocument.Copy method

This commit is contained in:
Haiyan Meng
2020-01-28 14:13:14 -08:00
parent b35b5aa73d
commit d5c66cb3d4
2 changed files with 10 additions and 1 deletions

View File

@@ -167,7 +167,7 @@ func main() {
it := idx.IterateQuery(query, 10000, 60*time.Second)
for it.Next() {
for _, hit := range it.Value().Hits.Hits {
seedDocs = append(seedDocs, hit.Document.Copy())
seedDocs = append(seedDocs, hit.Document.Document.Copy())
}
}
if err := it.Err(); err != nil {