Files
elasticsearch-js/docs/doc_examples/692606cc6d6462becc321d92961a3bac.asciidoc
2024-07-29 17:10:05 -05:00

12 lines
347 B
Plaintext

// This file is autogenerated, DO NOT EDIT
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
[source, js]
----
const response = await client.textStructure.testGrokPattern({
grok_pattern: "Hello %{WORD:first_name} %{WORD:last_name}",
text: ["Hello John Doe", "this does not match"],
});
console.log(response);
----