Skip to content

Commit

Permalink
fix: add indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
jiawei397 committed Jul 7, 2021
1 parent 496a2eb commit b1a9e0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const reIndex = async () => {

const stat = async () => {
try {
const info = await client.indicesStats({
const info = await client.indices.stats({
// index: "myindex",
});
console.log(info);
Expand Down
4 changes: 2 additions & 2 deletions examples/conn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const deleteByQuery = async () => {
try {
const info = await client.deleteByQuery({
index: "myindex",
data: {
body: {
query: {
"bool": {
"must": [{
Expand Down Expand Up @@ -107,7 +107,7 @@ const reIndex = async () => {

const stat = async () => {
try {
const info = await client.indicesStats({
const info = await client.indices.stats({
// index: "myindex",
});
console.log(info);
Expand Down

0 comments on commit b1a9e0a

Please sign in to comment.