# Wildcard for Nested object

**URL:** <https://discuss.elastic.co/t/wildcard-for-nested-object/103568>\
**Category:** Elasticsearch\
**Created:** [October 11, 2017, 2:32pm UTC](https://discuss.elastic.co/t/wildcard-for-nested-object/103568 "2017-10-11T14:32:03Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [October 11, 2017, 3:29pm UTC](https://discuss.elastic.co/t/wildcard-for-nested-object/103568/4 "2017-10-11T15:29:09Z")

</div>

But now I'm confused. This can not give you the error message you wrote earlier.

Whatever running something like `"wildcard": "*author*"` is one of the worst query you can run on an elasticsearch cluster. Basically you are going to run a full scan of the index which is bad.

Look at: [Wildcard query | Elasticsearch Guide [8.15] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-wildcard-query.html)

> Note that this query can be slow, as it needs to iterate over many terms. In order to prevent extremely slow wildcard queries, a wildcard term should not start with one of the wildcards \* or ?.

It would help if you provide a full recreation script as described in

> [@About the Elasticsearch category](https://discuss.elastic.co/t/about-the-elasticsearch-category/21):
>
> The heart of the free and open Elastic Stack Elasticsearch is a distributed, RESTful search and analytics engine capable of addressing a growing number of use cases. As the heart of the Elastic Stack, it centrally stores your data for lightning fast search, fine‑tuned relevancy, and powerful analytics that scale with ease. warning PLEASE READ THIS SECTION IF IT'S YOUR FIRST POST Some useful links: [elasticsearch reference guide](http://www.elastic.co/guide/en/elasticsearch/reference/current/index.html)[elasticsearch user guide](http://www.elastic.co/guide/en/elasticsearch/guide/current/index.html)[elasticsearch plugins](https://www.elastic.co/guide/en/elasticsearch/plugins/current/index.html)[elasticsearch cl…](https://www.elastic.co/guide/en/elasticsearch/client/index.html)

It will help to better understand what you are doing.  
Please, try to keep the example as simple as possible. I mean try without nested things at first...

---

_[View the full topic](https://discuss.elastic.co/t/wildcard-for-nested-object/103568)._
