# Filtering object

**URL:** <https://discuss.elastic.co/t/filtering-object/190486>\
**Category:** Elasticsearch\
**Created:** [July 15, 2019, 9:59am UTC](https://discuss.elastic.co/t/filtering-object/190486 "2019-07-15T09:59:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bala\_sal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bala_sal/32/50141_2.png) [@bala\_sal](https://discuss.elastic.co/u/bala_sal)\
**Post date:** [July 15, 2019, 9:59am UTC](https://discuss.elastic.co/t/filtering-object/190486/1 "2019-07-15T09:59:57Z")

</div>

I do not understand why this is not working.

mapping :

```
{
  "properties": {
    "id": {
      "type": "integer"
    },
    "tags": {
      "properties": {
        "value": {
          "type": "text"
        },
        "weight": {
          "type": "integer"
        }
      }
    },
    ,
    "civility": {
      "type": "text"
    }
.....
}

```

query: weight 13 EXISTS

```
{
  "query": {
    "bool": {
      "must": {
        "match_all": {}

      },
      "filter": {
        "match": {
           "tags.weight":13
        }
      }
    }
  }
}

```

Results :

```
{
    "took": 2,
    "timed_out": false,
    "_shards": {
        "total": 5,
        "successful": 5,
        "skipped": 0,
        "failed": 0
    },
    "hits": {
        "total": 0,
        "max_score": null,
        "hits": []
    }
}

```

Can someone help me please!`Preformatted text`

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 15, 2019, 12:21pm UTC](https://discuss.elastic.co/t/filtering-object/190486/2 "2019-07-15T12:21:00Z")

</div>

Welcome!

Could you provide a full recreation script as described in [About the Elasticsearch category](https://discuss.elastic.co/t/about-the-elasticsearch-category/21). It will help to better understand what you are doing. Please, try to keep the example as simple as possible.

A full reproduction script will help readers to understand, reproduce and if needed fix your problem. It will also most likely help to get a faster answer.

---

<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:** [August 12, 2019, 12:21pm UTC](https://discuss.elastic.co/t/filtering-object/190486/3 "2019-08-12T12:21:05Z")

</div>

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