Skip to content

Commit

Permalink
chore: log index creation
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Oct 31, 2024
1 parent d6407de commit 9f15ad6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/api/services/ingestion.go
Original file line number Diff line number Diff line change
Expand Up @@ -417,10 +417,12 @@ func (i *IngestionService) ProcessVcf(
mappings, _ := json.Marshal(indexes.VARIANT_INDEX_MAPPING)
var createBody = fmt.Sprintf(`{"mappings": %s}`, mappings)

client.Indices.Create(
res, _ := client.Indices.Create(
variantIndexName(c),
client.Indices.Create.WithBody(strings.NewReader(createBody)),
)

fmt.Printf("Creating contig index %s - got response: %s\n", c, res.String())
}

fmt.Println("Found the headers: ", headers)
Expand Down

0 comments on commit 9f15ad6

Please sign in to comment.