Document Index
Last updated
yq '.a | di' sample.yml0
---
1a: cat
---
a: frogyq 'select(document_index == 1)' sample.ymla: froga: cat
---
a: frogyq 'select(di == 1)' sample.ymla: froga: cat
---
a: frogyq '.a | ({"match": ., "doc": document_index})' sample.ymlmatch: cat
doc: 0
---
match: frog
doc: 1