# How to search deep?

**URL:** <https://discuss.elastic.co/t/how-to-search-deep/17632>\
**Category:** Elasticsearch\
**Created:** [May 20, 2014, 10:40pm UTC](https://discuss.elastic.co/t/how-to-search-deep/17632 "2014-05-20T22:40:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Namespace](https://avatars.discourse-cdn.com/v4/letter/n/ed8c4c/32.png) [@Namespace](https://discuss.elastic.co/u/Namespace)\
**Post date:** [May 20, 2014, 10:40pm UTC](https://discuss.elastic.co/t/how-to-search-deep/17632/1 "2014-05-20T22:40:48Z")

</div>

Hi guys. Hi have a little problem.

I have this Index:

▾ hits{}  
total: 1000  
max\_score: 1  
▾ hits  
\_index: "defaultdata"  
\_type: "zdata"  
\_id: "ETgJeWj3QV63QvMBA72G\_w"  
\_score: 1  
▾ \_source{}  
zName: "Little2Word2"  
zType: "Rechnung"  
▾ items{}  
▾ Position1{}  
zName: "Position1"  
zType: "string"  
▾ items{}  
value: " generelles erfolgversprechendste"  
▾ Position2{}  
zName: "Position2"  
zType: "string"  
▾ items{}  
value: " fortbleiben "

And would like to search in the items for e.g. "Position1". As far as I  
know I have to specify the path with

{  
"query": {  
"path": "items"  
}  
}

but that does not work. I get instead exceptions like

{

"error": "SearchPhaseExecutionException[Failed to execute phase [query],

> all shards failed; shardFailures {[IdmewBlCSN-1ZouYH877VQ][defaultdata][4]:  
> SearchParseException[[defaultdata][4]: from[-1],size[-1]: Parse Failure  
> [Failed to parse source [{\n\t"query": {\n \t"path": "items"\n  
> }\n}]]]; nested: QueryParsingException[[defaultdata] [\_na] query  
> malformed, no field after start\_object];  
> }{[IdmewBlCSN-1ZouYH877VQ][defaultdata][3]:  
> SearchParseException[[defaultdata][3]: from[-1],size[-1]: Parse Failure  
> [Failed to parse source [{\n\t"query": {\n \t"path": "items"\n  
> }\n}]]]; nested: QueryParsingException[[defaultdata] [\_na] query  
> malformed, no field after start\_object];  
> }{[IdmewBlCSN-1ZouYH877VQ][defaultdata][2]:  
> SearchParseException[[defaultdata][2]: from[-1],size[-1]: Parse Failure  
> [Failed to parse source [{\n\t"query": {\n \t"path": "items"\n  
> }\n}]]]; nested: QueryParsingException[[defaultdata] [\_na] query  
> malformed, no field after start\_object];  
> }{[IdmewBlCSN-1ZouYH877VQ][defaultdata][1]:  
> SearchParseException[[defaultdata][1]: from[-1],size[-1]: Parse Failure  
> [Failed to parse source [{\n\t"query": {\n \t"path": "items"\n  
> }\n}]]]; nested: QueryParsingException[[defaultdata] [\_na] query  
> malformed, no field after start\_object];  
> }{[IdmewBlCSN-1ZouYH877VQ][defaultdata][0]:  
> SearchParseException[[defaultdata][0]: from[-1],size[-1]: Parse Failure  
> [Failed to parse source [{\n\t"query": {\n \t"path": "items"\n  
> }\n}]]]; nested: QueryParsingException[[defaultdata] [\_na] query  
> malformed, no field after start\_object]; }]",

"status": 400

}

How can I search in "items"?  
I'm using Elasticsearch with C#, if that helps.

Thanks in advance, I'm really despair. 😕

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/c875a5fd-2c34-4988-93af-69d270676310%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c875a5fd-2c34-4988-93af-69d270676310%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [May 21, 2014, 7:25am UTC](https://discuss.elastic.co/t/how-to-search-deep/17632/2 "2014-05-21T07:25:42Z")

</div>

Hi,

You didn't give your mapping, so I assume that you used dynamic mappings.  
In which case you should be able to search for content in items with the  
following query:

{  
"query": {  
"match": {  
"items.value": "generelles"  
}  
}  
}

You might want to check out

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

gives very valuable information about how to index and query data with  
Elasticsearch.

On Wed, May 21, 2014 at 12:40 AM, Namespace [rswhite4@gmail.com](mailto:rswhite4@gmail.com) wrote:

> Hi guys. Hi have a little problem.
> 
> I have this Index:
> 
> ▾ hits{}  
> total: 1000  
> max\_score: 1  
> ▾ hits  
> \_index: "defaultdata"  
> \_type: "zdata"  
> \_id: "ETgJeWj3QV63QvMBA72G\_w"  
> \_score: 1  
> ▾ \_source{}  
> zName: "Little2Word2"  
> zType: "Rechnung"  
> ▾ items{}  
> ▾ Position1{}  
> zName: "Position1"  
> zType: "string"  
> ▾ items{}  
> value: " generelles erfolgversprechendste"  
> ▾ Position2{}  
> zName: "Position2"  
> zType: "string"  
> ▾ items{}  
> value: " fortbleiben "
> 
> And would like to search in the items for e.g. "Position1". As far as I  
> know I have to specify the path with
> 
> {  
> "query": {  
> "path": "items"  
> }  
> }
> 
> but that does not work. I get instead exceptions like
> 
> {
> 
> "error": "SearchPhaseExecutionException[Failed to execute phase [query],
> 
> > all shards failed; shardFailures {[IdmewBlCSN-1ZouYH877VQ][defaultdata][4]:  
> > SearchParseException[[defaultdata][4]: from[-1],size[-1]: Parse Failure  
> > [Failed to parse source [{\n\t"query": {\n \t"path": "items"\n  
> > }\n}]]]; nested: QueryParsingException[[defaultdata] [\_na] query  
> > malformed, no field after start\_object];  
> > }{[IdmewBlCSN-1ZouYH877VQ][defaultdata][3]:  
> > SearchParseException[[defaultdata][3]: from[-1],size[-1]: Parse Failure  
> > [Failed to parse source [{\n\t"query": {\n \t"path": "items"\n  
> > }\n}]]]; nested: QueryParsingException[[defaultdata] [\_na] query  
> > malformed, no field after start\_object];  
> > }{[IdmewBlCSN-1ZouYH877VQ][defaultdata][2]:  
> > SearchParseException[[defaultdata][2]: from[-1],size[-1]: Parse Failure  
> > [Failed to parse source [{\n\t"query": {\n \t"path": "items"\n  
> > }\n}]]]; nested: QueryParsingException[[defaultdata] [\_na] query  
> > malformed, no field after start\_object];  
> > }{[IdmewBlCSN-1ZouYH877VQ][defaultdata][1]:  
> > SearchParseException[[defaultdata][1]: from[-1],size[-1]: Parse Failure  
> > [Failed to parse source [{\n\t"query": {\n \t"path": "items"\n  
> > }\n}]]]; nested: QueryParsingException[[defaultdata] [\_na] query  
> > malformed, no field after start\_object];  
> > }{[IdmewBlCSN-1ZouYH877VQ][defaultdata][0]:  
> > SearchParseException[[defaultdata][0]: from[-1],size[-1]: Parse Failure  
> > [Failed to parse source [{\n\t"query": {\n \t"path": "items"\n  
> > }\n}]]]; nested: QueryParsingException[[defaultdata] [\_na] query  
> > malformed, no field after start\_object]; }]",
> 
> "status": 400
> 
> }
> 
> How can I search in "items"?  
> I'm using Elasticsearch with C#, if that helps.
> 
> Thanks in advance, I'm really despair. 😕
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/c875a5fd-2c34-4988-93af-69d270676310%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c875a5fd-2c34-4988-93af-69d270676310%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/c875a5fd-2c34-4988-93af-69d270676310%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/c875a5fd-2c34-4988-93af-69d270676310%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
Adrien Grand

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j41AN%2BdGv7AgyYo9E0%2BBoVVFJv\_o1RoThJEwBexO\_EQCQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j41AN%2BdGv7AgyYo9E0%2BBoVVFJv_o1RoThJEwBexO_EQCQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 1:27am UTC](https://discuss.elastic.co/t/how-to-search-deep/17632/3 "2017-07-06T01:27:57Z")

</div>


