Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Relavant metadata stored for the given hash:
- "hits": [
- {
- "_index": "k_index.6",
- "_type": "_doc",
- "_id": "Unique id removed",
- "_score": 0,
- "_source": {
- "kmeta:updateTime": "2020-09-06T11:18:43.000Z",
- "kmeta:fileHash": "fffffce6050d2fa50019d5679239e22d"
- }
- },
- {
- "_index": "k_index.6",
- "_type": "_doc",
- "_id": "Unique id removed",
- "_score": 0,
- "_source": {
- "kmeta:updateTime": "2020-09-06T12:01:11.000Z",
- "kmeta:fileHash": "fffffce6050d2fa50019d5679239e22d"
- }
- },
- {
- "_index": "k_index.6",
- "_type": "_doc",
- "_id": "Unique id removed",
- "_score": 0,
- "_source": {
- "kmeta:updateTime": "2020-09-06T13:23:38.000Z",
- "kmeta:fileHash": "fffffce6050d2fa50019d5679239e22d"
- }
- }
- ]
- Query 1 returning one of the missing hashes:
- GET On: /_search?request_cache=false
- {
- "from": 0,
- "size": 0,
- "query": {
- "bool": {
- "filter": [
- {
- "term": {
- "kmeta:fileHash": {
- "value": "fffffce6050d2fa50019d5679239e22d",
- "boost": 1
- }
- }
- },
- {
- "range": {
- "kmeta:updateTime": {
- "from": "2020-09-06T11:10:43.000Z",
- "to": "2020-09-06T13:24:43.000Z",
- "include_lower": true,
- "include_upper": false,
- "time_zone": "Europe/Berlin",
- "boost": 1
- }
- }
- }
- ]
- }
- },
- "aggregations": {
- "kmeta:fileHash": {
- "terms": {
- "include": {
- "partition": 0,
- "num_partitions": 1
- },
- "field": "kmeta:fileHash",
- "size": 1000,
- "shard_size": 1000,
- "min_doc_count": 2,
- "shard_min_doc_count": 1
- }
- }
- }
- }
- Result of Query 1
- {
- "took": 1140,
- "timed_out": false,
- "_shards": {
- "total": 8,
- "successful": 8,
- "skipped": 0,
- "failed": 0
- },
- "hits": {
- "total": {
- "value": 3,
- "relation": "eq"
- },
- "max_score": null,
- "hits": [
- ]
- },
- "aggregations": {
- "kmeta:fileHash": {
- "doc_count_error_upper_bound": 0,
- "sum_other_doc_count": 0,
- "buckets": [
- {
- "key": "fffffce6050d2fa50019d5679239e22d",
- "doc_count": 3
- }
- ]
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement