Skip to content

Commit

Permalink
fix(search): onboarding console bulk import code (elastic#199487)
Browse files Browse the repository at this point in the history
## Summary

ensure console code has correct new lines for bulk import
  • Loading branch information
TattdCodeMonkey authored Nov 8, 2024
1 parent a227021 commit a55ad44
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const ConsoleVectorsIngestDataExample: IngestDataCodeDefinition = {
let result = 'POST /_bulk?pretty\n';
sampleDocuments.forEach((document) => {
result += `{ "index": { "_index": "${indexName}" } }
${JSON.stringify(document)}`;
${JSON.stringify(document)}\n`;
});
result += '\n';
return result;
Expand Down

0 comments on commit a55ad44

Please sign in to comment.