# Kibana discover does not appear to list empty documents

**URL:** https://discuss.elastic.co/t/kibana-discover-does-not-appear-to-list-empty-documents/106835
**Category:** Kibana
**Created:** [November 8, 2017, 9:45am UTC](https://discuss.elastic.co/t/kibana-discover-does-not-appear-to-list-empty-documents/106835 "2017-11-08T09:45:06Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![TimWard](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timward/32/19574_2.png) [@TimWard](https://discuss.elastic.co/u/TimWard)
#### Post date: [November 8, 2017, 9:45am UTC](https://discuss.elastic.co/t/kibana-discover-does-not-appear-to-list-empty-documents/106835/1 "2017-11-08T09:45:06Z")

</div>

Is that correct? - I'm (experimenting with) creating empty documents just as flags that the IDs exist: I can see these documents with a search, so my software will work OK, but they don't seem to appear in Kibana's "discover" page?

---

<div class="post-metadata">

### Author: ![weltenwort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weltenwort/32/53885_2.png) [@weltenwort](https://discuss.elastic.co/u/weltenwort)
#### Post date: [November 8, 2017, 2:16pm UTC](https://discuss.elastic.co/t/kibana-discover-does-not-appear-to-list-empty-documents/106835/2 "2017-11-08T14:16:22Z")

</div>

Hi @TimWard,

there are a few reasons why this might happen. The first that comes to mind is, that if your index pattern is configured as time-based with a time field, Kibana will implicitly include a time range in every query. Any documents that don't have the configured time field will then be excluded from the result set, because they don't match the query criteria. Could you check whether that is the case?

---

<div class="post-metadata">

### Author: ![TimWard](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timward/32/19574_2.png) [@TimWard](https://discuss.elastic.co/u/TimWard)
#### Post date: [November 8, 2017, 2:29pm UTC](https://discuss.elastic.co/t/kibana-discover-does-not-appear-to-list-empty-documents/106835/3 "2017-11-08T14:29:58Z")

</div>

It's not a time-based index and Kibana (as far as I can tell) doesn't think it is.

---

<div class="post-metadata">

### Author: ![weltenwort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weltenwort/32/53885_2.png) [@weltenwort](https://discuss.elastic.co/u/weltenwort)
#### Post date: [November 8, 2017, 3:05pm UTC](https://discuss.elastic.co/t/kibana-discover-does-not-appear-to-list-empty-documents/106835/4 "2017-11-08T15:05:04Z")

</div>

Ok, good to know. In that case it might be helpful to take a look at the requests being sent. They show up as `_msearch` requests in the network panel of your browser's developer tools. If you could paste them here or attach a [HAR](https://toolbox.googleapps.com/apps/har_analyzer/) file of the request, I could try to find clues in there.

---

<div class="post-metadata">

### Author: ![TimWard](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timward/32/19574_2.png) [@TimWard](https://discuss.elastic.co/u/TimWard)
#### Post date: [November 8, 2017, 4:55pm UTC](https://discuss.elastic.co/t/kibana-discover-does-not-appear-to-list-empty-documents/106835/5 "2017-11-08T16:55:07Z")

</div>

```
{
	"index": ["analyser"],
	"ignore_unavailable": true,
	"preference": 1510134031978
}{
	"version": true,
	"size": 500,
	"sort": [{
		"_score": {
			"order": "desc"
		}
	}],
	"query": {
		"query_string": {
			"analyze_wildcard": true,
			"query": "*"
		}
	},
	"_source": {
		"excludes": []
	},
	"stored_fields": ["*"],
	"script_fields": {
		
	},
	"docvalue_fields": [],
	"highlight": {
		"pre_tags": ["@kibana-highlighted-field@"],
		"post_tags": ["@/kibana-highlighted-field@"],
		"fields": {
			"*": {
				"highlight_query": {
					"query_string": {
						"analyze_wildcard": true,
						"query": "*",
						"all_fields": true
					}
				}
			}
		},
		"fragment_size": 2147483647
	}
}
```

---

<div class="post-metadata">

### Author: ![weltenwort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weltenwort/32/53885_2.png) [@weltenwort](https://discuss.elastic.co/u/weltenwort)
#### Post date: [November 9, 2017, 10:35am UTC](https://discuss.elastic.co/t/kibana-discover-does-not-appear-to-list-empty-documents/106835/6 "2017-11-09T10:35:58Z")

</div>

I can't see anything in that query that would exclude empty documents. If you perform the following request, does the `hits.total` match the number of documents including the empty ones or are they missing from that number as well?

```
POST /analyser/_search
{
  "version": true,
  "size": 0,
  "sort": [{
    "_score": {
      "order": "desc"
    }
  }],
  "query": {
    "query_string": {
      "analyze_wildcard": true,
      "query": "*"
    }
  },
  "_source": {
    "excludes": []
  },
  "stored_fields": ["*"],
  "script_fields": {
    
  },
  "docvalue_fields": [],
  "highlight": {
    "pre_tags": ["@kibana-highlighted-field@"],
    "post_tags": ["@/kibana-highlighted-field@"],
    "fields": {
      "*": {
        "highlight_query": {
          "query_string": {
            "analyze_wildcard": true,
            "query": "*",
            "all_fields": true
          }
        }
      }
    },
    "fragment_size": 2147483647
  }
}
```

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [December 7, 2017, 10:36am UTC](https://discuss.elastic.co/t/kibana-discover-does-not-appear-to-list-empty-documents/106835/7 "2017-12-07T10:36:08Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
