# Ignoring all attributes that end with className

**URL:** https://discuss.elastic.co/t/ignoring-all-attributes-that-end-with-classname/28573
**Category:** Elasticsearch
**Created:** [September 3, 2015, 2:10am UTC](https://discuss.elastic.co/t/ignoring-all-attributes-that-end-with-classname/28573 "2015-09-03T02:10:36Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![John\_D\_Ament](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/john_d_ament/32/764_2.png) [@John\_D\_Ament](https://discuss.elastic.co/u/John_D_Ament)
#### Post date: [September 3, 2015, 2:10am UTC](https://discuss.elastic.co/t/ignoring-all-attributes-that-end-with-classname/28573/1 "2015-09-03T02:10:36Z")

</div>

My application is using jackson for object serialization. We have many annotations, and one adds a class attribute to the JSON to identify what type of object is being stored or retrieved.

We're now storing these structures in ElasticSearch. I was wondering if there's a way to tell elasticsearch to ignore all of these class attributes (since they're all over the document) instead of having to map each one individually.

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [September 3, 2015, 6:16am UTC](https://discuss.elastic.co/t/ignoring-all-attributes-that-end-with-classname/28573/2 "2015-09-03T06:16:56Z")

</div>

You can tell ES to not store and not index it via a mapping (if I understand what you want that is).

---

<div class="post-metadata">

### Author: ![John\_D\_Ament](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/john_d_ament/32/764_2.png) [@John\_D\_Ament](https://discuss.elastic.co/u/John_D_Ament)
#### Post date: [September 3, 2015, 10:38am UTC](https://discuss.elastic.co/t/ignoring-all-attributes-that-end-with-classname/28573/3 "2015-09-03T10:38:30Z")

</div>

For a few reasons, I don't want to modify the mappings yet. I'm thinking that a multi match query with partial field names of what I do want to search on is what I'm looking for [https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-multi-match-query.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-multi-match-query.html) however, I need partial word search (e.g. if the text is bob and query is ob that should return).

---

<div class="post-metadata">

### Author: ![John\_D\_Ament](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/john_d_ament/32/764_2.png) [@John\_D\_Ament](https://discuss.elastic.co/u/John_D_Ament)
#### Post date: [September 3, 2015, 11:11am UTC](https://discuss.elastic.co/t/ignoring-all-attributes-that-end-with-classname/28573/4 "2015-09-03T11:11:09Z")

</div>

Anyways I did get this part working using a multi match and a wildcard field name. I have other questions, other topics.

---

<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: [July 5, 2017, 11:52pm UTC](https://discuss.elastic.co/t/ignoring-all-attributes-that-end-with-classname/28573/5 "2017-07-05T23:52:18Z")

</div>


