Skip to content

Commit

Permalink
Updated comments with explanation of “skipped” result
Browse files Browse the repository at this point in the history
  • Loading branch information
markharwood committed Nov 15, 2019
1 parent 6d86cc3 commit 8e42ac4
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,7 @@
- match: { hits.total: 0 }
- match: { _shards.total: 2 }
- match: { _shards.successful: 2 }
# Not sure why skipped is 1 instead of 2 - seems we always fully query at least one shard?
# Testing against index with single shard never skips and 2 shards only reports 1 shard skipped.
# When all shards are skipped current logic returns 1 to produce a valid search result
- match: { _shards.skipped : 1}
- match: { _shards.failed: 0 }

Expand All @@ -184,8 +183,7 @@
- match: { hits.total: 0 }
- match: { _shards.total: 2 }
- match: { _shards.successful: 2 }
# Not sure why skipped is 1 instead of 2 - seems we always fully query at least one shard?
# Testing against index with single shard never skips and 2 shards only reports 1 shard skipped.
# When all shards are skipped current logic returns 1 to produce a valid search result
- match: { _shards.skipped : 1}
- match: { _shards.failed: 0 }

Expand All @@ -202,8 +200,7 @@
- match: { hits.total: 0 }
- match: { _shards.total: 2 }
- match: { _shards.successful: 2 }
# Not sure why skipped is 1 instead of 2 - seems we always fully query at least one shard?
# Testing against index with single shard never skips and 2 shards only reports 1 shard skipped.
# When all shards are skipped current logic returns 1 to produce a valid search result
- match: { _shards.skipped : 1}
- match: { _shards.failed: 0 }

Expand All @@ -220,8 +217,7 @@
- match: { hits.total: 0 }
- match: { _shards.total: 2 }
- match: { _shards.successful: 2 }
# Not sure why skipped is 1 instead of 2 - seems we always fully query at least one shard?
# Testing against index with single shard never skips and 2 shards only reports 1 shard skipped.
# When all shards are skipped current logic returns 1 to produce a valid search result
- match: { _shards.skipped : 1}
- match: { _shards.failed: 0 }

0 comments on commit 8e42ac4

Please sign in to comment.