Skip to content

Commit

Permalink
fix yaml test
Browse files Browse the repository at this point in the history
  • Loading branch information
jimczi committed Dec 3, 2024
1 parent 7b823ed commit cdc121d
Showing 1 changed file with 15 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -515,18 +515,13 @@
body:
fields: [ "ml.tokens" ]

- match:
hits.hits.0.fields: {
ml.tokens: [
{
running: 2.0,
good: 3.0,
run: 5.0,
race: 7.0,
for: 9.0
}
]
}
- length: { hits.hits.0.fields.ml\\.tokens: 1 }
- length: { hits.hits.0.fields.ml\\.tokens.0: 5 }
- match: { hits.hits.0.fields.ml\\.tokens.0.running: 2.0 }
- match: { hits.hits.0.fields.ml\\.tokens.0.good: 3.0 }
- match: { hits.hits.0.fields.ml\\.tokens.0.run: 5.0 }
- match: { hits.hits.0.fields.ml\\.tokens.0.race: 7.0 }
- match: { hits.hits.0.fields.ml\\.tokens.0.for: 9.0 }

---
"stored sparse_vector synthetic source":
Expand Down Expand Up @@ -586,15 +581,11 @@
}
}
}
- match:
hits.hits.0.fields: {
ml.tokens: [
{
running: 2.0,
good: 3.0,
run: 5.0,
race: 7.0,
for: 9.0
}
]
}

- length: { hits.hits.0.fields.ml\\.tokens: 1 }
- length: { hits.hits.0.fields.ml\\.tokens.0: 5 }
- match: { hits.hits.0.fields.ml\\.tokens.0.running: 2.0 }
- match: { hits.hits.0.fields.ml\\.tokens.0.good: 3.0 }
- match: { hits.hits.0.fields.ml\\.tokens.0.run: 5.0 }
- match: { hits.hits.0.fields.ml\\.tokens.0.race: 7.0 }
- match: { hits.hits.0.fields.ml\\.tokens.0.for: 9.0 }

0 comments on commit cdc121d

Please sign in to comment.