# \[minor\] field query syntax appears to no longer work in ES 1.0.1

**URL:** <https://discuss.elastic.co/t/minor-field-query-syntax-appears-to-no-longer-work-in-es-1-0-1/16573>\
**Category:** Elasticsearch\
**Created:** [March 25, 2014, 1:11am UTC](https://discuss.elastic.co/t/minor-field-query-syntax-appears-to-no-longer-work-in-es-1-0-1/16573 "2014-03-25T01:11:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nikita\_Tovstoles](https://avatars.discourse-cdn.com/v4/letter/n/f17d59/32.png) [@Nikita\_Tovstoles](https://discuss.elastic.co/u/Nikita_Tovstoles)\
**Post date:** [March 25, 2014, 1:11am UTC](https://discuss.elastic.co/t/minor-field-query-syntax-appears-to-no-longer-work-in-es-1-0-1/16573/1 "2014-03-25T01:11:05Z")

</div>

just a heads-up for folks who've upgraded to 1.0.x from 0.9x (as did I). It  
appears - and I could be wrong - that field query[http://www.elasticsearch.org/guide/en/elasticsearch/reference/0.90/query-dsl-field-query.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/0.90/query-dsl-field-query.html)syntax no longer works (while equivalent query\_string query still does).  
Has field query been deprecated?

this works for me:

{  
"query": {  
"query\_string": {  
"default\_field": "name",  
"query" : "foo"  
}  
}  
}

this produces error:

{  
"query": {  
"field": {  
"name": "foo"  
}  
}  
}

[STARTED]: Failed to execute  
[org.elasticsearch.action.search.SearchRequest@1dfcee26]  
org.elasticsearch.search.SearchParseException: [admin\_1395519377710][0]:  
from[-1],size[-1]: Parse Failure [Failed to parse source [{  
"query": {  
"field": {  
"name": "foo"  
}  
}  
}]]  
at  
org.elasticsearch.search.SearchService.parseSource(SearchService.java:595)  
at  
org.elasticsearch.search.SearchService.createContext(SearchService.java:498)  
at  
org.elasticsearch.search.SearchService.createAndPutContext(SearchService.java:472)  
at  
org.elasticsearch.search.SearchService.executeFetchPhase(SearchService.java:316)  
at  
org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteFetch(SearchServiceTransportAction.java:304)  
at  
org.elasticsearch.action.search.type.TransportSearchQueryAndFetchAction$AsyncAction.sendExecuteFirstPhase(TransportSearchQueryAndFetchAction.java:71)  
at  
org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:216)  
at  
org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:203)  
at  
org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction$2.run(TransportSearchTypeAction.java:186)  
at  
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
at  
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
at java.lang.Thread.run(Thread.java:744)  
Caused by: org.elasticsearch.index.query.QueryParsingException:  
[admin\_1395519377710] No query registered for [field]  
at  
org.elasticsearch.index.query.QueryParseContext.parseInnerQuery(QueryParseContext.java:221)

AFAIK the two are supposed to be identical queries.

-nikita

--  
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/522d218d-312c-49b9-a1d1-912f4e5a7174%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/522d218d-312c-49b9-a1d1-912f4e5a7174%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Josh\_Canfield](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/josh_canfield/32/1705_2.png) [@Josh\_Canfield](https://discuss.elastic.co/u/Josh_Canfield)\
**Post date:** [March 25, 2014, 2:07am UTC](https://discuss.elastic.co/t/minor-field-query-syntax-appears-to-no-longer-work-in-es-1-0-1/16573/2 "2014-03-25T02:07:28Z")

</div>

This is pretty helpful.

> **[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.

- The field query has been removed. Use the  
query\_string[http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/query-dsl-query-string-query.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/query-dsl-query-string-query.html)  
query  
instead.

Josh

On Mon, Mar 24, 2014 at 6:11 PM, Nikita Tovstoles \<  
[nikita.tovstoles@gmail.com](mailto:nikita.tovstoles@gmail.com)\> wrote:

> just a heads-up for folks who've upgraded to 1.0.x from 0.9x (as did I).  
> It appears - and I could be wrong - that field query[http://www.elasticsearch.org/guide/en/elasticsearch/reference/0.90/query-dsl-field-query.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/0.90/query-dsl-field-query.html)syntax no longer works (while equivalent query\_string query still does).  
> Has field query been deprecated?
> 
> this works for me:
> 
> {  
> "query": {  
> "query\_string": {  
> "default\_field": "name",  
> "query" : "foo"  
> }  
> }  
> }
> 
> this produces error:
> 
> {  
> "query": {  
> "field": {  
> "name": "foo"  
> }  
> }  
> }
> 
> [STARTED]: Failed to execute  
> [org.elasticsearch.action.search.SearchRequest@1dfcee26]  
> org.elasticsearch.search.SearchParseException: [admin\_1395519377710][0]:  
> from[-1],size[-1]: Parse Failure [Failed to parse source [{  
> "query": {  
> "field": {  
> "name": "foo"  
> }  
> }  
> }]]  
> at  
> org.elasticsearch.search.SearchService.parseSource(SearchService.java:595)  
> at  
> org.elasticsearch.search.SearchService.createContext(SearchService.java:498)  
> at  
> org.elasticsearch.search.SearchService.createAndPutContext(SearchService.java:472)  
> at  
> org.elasticsearch.search.SearchService.executeFetchPhase(SearchService.java:316)  
> at  
> org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteFetch(SearchServiceTransportAction.java:304)  
> at  
> org.elasticsearch.action.search.type.TransportSearchQueryAndFetchAction$AsyncAction.sendExecuteFirstPhase(TransportSearchQueryAndFetchAction.java:71)  
> at  
> org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:216)  
> at  
> org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:203)  
> at  
> org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction$2.run(TransportSearchTypeAction.java:186)  
> at  
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
> at  
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
> at java.lang.Thread.run(Thread.java:744)  
> Caused by: org.elasticsearch.index.query.QueryParsingException:  
> [admin\_1395519377710] No query registered for [field]  
> at  
> org.elasticsearch.index.query.QueryParseContext.parseInnerQuery(QueryParseContext.java:221)
> 
> AFAIK the two are supposed to be identical queries.
> 
> -nikita
> 
> --  
> 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/522d218d-312c-49b9-a1d1-912f4e5a7174%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/522d218d-312c-49b9-a1d1-912f4e5a7174%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/522d218d-312c-49b9-a1d1-912f4e5a7174%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/522d218d-312c-49b9-a1d1-912f4e5a7174%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CAFaqXJtws7MRnVHkvm572zvH5COoMFjYchKX88e%2BFBWmXZyx2Q%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAFaqXJtws7MRnVHkvm572zvH5COoMFjYchKX88e%2BFBWmXZyx2Q%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Harry\_Waye\_2](https://avatars.discourse-cdn.com/v4/letter/h/b2d939/32.png) [@Harry\_Waye\_2](https://discuss.elastic.co/u/Harry_Waye_2)\
**Post date:** [March 25, 2014, 2:12am UTC](https://discuss.elastic.co/t/minor-field-query-syntax-appears-to-no-longer-work-in-es-1-0-1/16573/3 "2014-03-25T02:12:35Z")

</div>

Indeed docs appear up to date

> **[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.

Although depreciation warning in these cases would be useful.

On Tuesday, March 25, 2014 2:07:28 AM UTC, Josh Canfield wrote:

> This is pretty helpful.
> 
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/_deprecations.html)
> 
> - The field query has been removed. Use the query\_string[http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/query-dsl-query-string-query.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/query-dsl-query-string-query.html) query  
> instead.
> 
> Josh
> 
> On Mon, Mar 24, 2014 at 6:11 PM, Nikita Tovstoles \<[nikita.t...@gmail.com](mailto:nikita.t...@gmail.com)\<javascript:\>
> 
> > wrote:
> 
> > just a heads-up for folks who've upgraded to 1.0.x from 0.9x (as did I).  
> > It appears - and I could be wrong - that field query[http://www.elasticsearch.org/guide/en/elasticsearch/reference/0.90/query-dsl-field-query.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/0.90/query-dsl-field-query.html)syntax no longer works (while equivalent query\_string query still does).  
> > Has field query been deprecated?
> > 
> > this works for me:
> > 
> > {  
> > "query": {  
> > "query\_string": {  
> > "default\_field": "name",  
> > "query" : "foo"  
> > }  
> > }  
> > }
> > 
> > this produces error:
> > 
> > {  
> > "query": {  
> > "field": {  
> > "name": "foo"  
> > }  
> > }  
> > }
> > 
> > [STARTED]: Failed to execute  
> > [org.elasticsearch.action.search.SearchRequest@1dfcee26]  
> > org.elasticsearch.search.SearchParseException: [admin\_1395519377710][0]:  
> > from[-1],size[-1]: Parse Failure [Failed to parse source [{  
> > "query": {  
> > "field": {  
> > "name": "foo"  
> > }  
> > }  
> > }]]  
> > at  
> > org.elasticsearch.search.SearchService.parseSource(SearchService.java:595)  
> > at  
> > org.elasticsearch.search.SearchService.createContext(SearchService.java:498)  
> > at  
> > org.elasticsearch.search.SearchService.createAndPutContext(SearchService.java:472)  
> > at  
> > org.elasticsearch.search.SearchService.executeFetchPhase(SearchService.java:316)  
> > at  
> > org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteFetch(SearchServiceTransportAction.java:304)  
> > at  
> > org.elasticsearch.action.search.type.TransportSearchQueryAndFetchAction$AsyncAction.sendExecuteFirstPhase(TransportSearchQueryAndFetchAction.java:71)  
> > at  
> > org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:216)  
> > at  
> > org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:203)  
> > at  
> > org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction$2.run(TransportSearchTypeAction.java:186)  
> > at  
> > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
> > at  
> > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
> > at java.lang.Thread.run(Thread.java:744)  
> > Caused by: org.elasticsearch.index.query.QueryParsingException:  
> > [admin\_1395519377710] No query registered for [field]  
> > at  
> > org.elasticsearch.index.query.QueryParseContext.parseInnerQuery(QueryParseContext.java:221)
> > 
> > AFAIK the two are supposed to be identical queries.
> > 
> > -nikita
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/522d218d-312c-49b9-a1d1-912f4e5a7174%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/522d218d-312c-49b9-a1d1-912f4e5a7174%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/522d218d-312c-49b9-a1d1-912f4e5a7174%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/522d218d-312c-49b9-a1d1-912f4e5a7174%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/63698ebe-058b-48b5-bbbd-9535b4348af7%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/63698ebe-058b-48b5-bbbd-9535b4348af7%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Nikita\_Tovstoles](https://avatars.discourse-cdn.com/v4/letter/n/f17d59/32.png) [@Nikita\_Tovstoles](https://discuss.elastic.co/u/Nikita_Tovstoles)\
**Post date:** [March 25, 2014, 2:36am UTC](https://discuss.elastic.co/t/minor-field-query-syntax-appears-to-no-longer-work-in-es-1-0-1/16573/4 "2014-03-25T02:36:27Z")

</div>

Indeed. Fwiw I looked at 'v1x breaking changes' page before posting - no  
mention there  
On Mar 24, 2014 7:07 PM, "Josh Canfield" [joshcanfield@gmail.com](mailto:joshcanfield@gmail.com) wrote:

> This is pretty helpful.
> 
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/_deprecations.html)
> 
> - The field query has been removed. Use the query\_string[http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/query-dsl-query-string-query.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/query-dsl-query-string-query.html) query  
> instead.
> 
> Josh
> 
> On Mon, Mar 24, 2014 at 6:11 PM, Nikita Tovstoles \<  
> [nikita.tovstoles@gmail.com](mailto:nikita.tovstoles@gmail.com)\> wrote:
> 
> > just a heads-up for folks who've upgraded to 1.0.x from 0.9x (as did I).  
> > It appears - and I could be wrong - that field query[http://www.elasticsearch.org/guide/en/elasticsearch/reference/0.90/query-dsl-field-query.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/0.90/query-dsl-field-query.html)syntax no longer works (while equivalent query\_string query still does).  
> > Has field query been deprecated?
> > 
> > this works for me:
> > 
> > {  
> > "query": {  
> > "query\_string": {  
> > "default\_field": "name",  
> > "query" : "foo"  
> > }  
> > }  
> > }
> > 
> > this produces error:
> > 
> > {  
> > "query": {  
> > "field": {  
> > "name": "foo"  
> > }  
> > }  
> > }
> > 
> > [STARTED]: Failed to execute  
> > [org.elasticsearch.action.search.SearchRequest@1dfcee26]  
> > org.elasticsearch.search.SearchParseException: [admin\_1395519377710][0]:  
> > from[-1],size[-1]: Parse Failure [Failed to parse source [{  
> > "query": {  
> > "field": {  
> > "name": "foo"  
> > }  
> > }  
> > }]]  
> > at  
> > org.elasticsearch.search.SearchService.parseSource(SearchService.java:595)  
> > at  
> > org.elasticsearch.search.SearchService.createContext(SearchService.java:498)  
> > at  
> > org.elasticsearch.search.SearchService.createAndPutContext(SearchService.java:472)  
> > at  
> > org.elasticsearch.search.SearchService.executeFetchPhase(SearchService.java:316)  
> > at  
> > org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteFetch(SearchServiceTransportAction.java:304)  
> > at  
> > org.elasticsearch.action.search.type.TransportSearchQueryAndFetchAction$AsyncAction.sendExecuteFirstPhase(TransportSearchQueryAndFetchAction.java:71)  
> > at  
> > org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:216)  
> > at  
> > org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:203)  
> > at  
> > org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction$2.run(TransportSearchTypeAction.java:186)  
> > at  
> > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
> > at  
> > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
> > at java.lang.Thread.run(Thread.java:744)  
> > Caused by: org.elasticsearch.index.query.QueryParsingException:  
> > [admin\_1395519377710] No query registered for [field]  
> > at  
> > org.elasticsearch.index.query.QueryParseContext.parseInnerQuery(QueryParseContext.java:221)
> > 
> > AFAIK the two are supposed to be identical queries.
> > 
> > -nikita
> > 
> > --  
> > 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/522d218d-312c-49b9-a1d1-912f4e5a7174%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/522d218d-312c-49b9-a1d1-912f4e5a7174%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/522d218d-312c-49b9-a1d1-912f4e5a7174%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/522d218d-312c-49b9-a1d1-912f4e5a7174%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/bZedUbHBS\_E/unsubscribe](https://groups.google.com/d/topic/elasticsearch/bZedUbHBS_E/unsubscribe).  
> To unsubscribe from this group and all its topics, 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/CAFaqXJtws7MRnVHkvm572zvH5COoMFjYchKX88e%2BFBWmXZyx2Q%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAFaqXJtws7MRnVHkvm572zvH5COoMFjYchKX88e%2BFBWmXZyx2Q%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CAFaqXJtws7MRnVHkvm572zvH5COoMFjYchKX88e%2BFBWmXZyx2Q%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAFaqXJtws7MRnVHkvm572zvH5COoMFjYchKX88e%2BFBWmXZyx2Q%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CAJwaA22cUhYDfEhM-twbZ0wfKNFO4VmBg%2BNkjCRW3uG2GL-dqQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAJwaA22cUhYDfEhM-twbZ0wfKNFO4VmBg%2BNkjCRW3uG2GL-dqQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Harry\_Waye\_2](https://avatars.discourse-cdn.com/v4/letter/h/b2d939/32.png) [@Harry\_Waye\_2](https://discuss.elastic.co/u/Harry_Waye_2)\
**Post date:** [March 25, 2014, 2:42am UTC](https://discuss.elastic.co/t/minor-field-query-syntax-appears-to-no-longer-work-in-es-1-0-1/16573/5 "2014-03-25T02:42:51Z")

</div>

An oversight I guess... can't see anything immediately obv. either. I  
hope you tested before putting into production.

On Tuesday, March 25, 2014 2:36:27 AM UTC, Nikita Tovstoles wrote:

> Indeed. Fwiw I looked at 'v1x breaking changes' page before posting - no  
> mention there  
> On Mar 24, 2014 7:07 PM, "Josh Canfield" \<[joshca...@gmail.com](mailto:joshca...@gmail.com)\<javascript:\>\>  
> wrote:
> 
> > This is pretty helpful.
> > 
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/_deprecations.html)
> > 
> > - The field query has been removed. Use the query\_string[http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/query-dsl-query-string-query.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/query-dsl-query-string-query.html) query  
> > instead.
> > 
> > Josh
> > 
> > On Mon, Mar 24, 2014 at 6:11 PM, Nikita Tovstoles \<[nikita.t...@gmail.com](mailto:nikita.t...@gmail.com)\<javascript:\>
> > 
> > > wrote:
> > 
> > > just a heads-up for folks who've upgraded to 1.0.x from 0.9x (as did I).  
> > > It appears - and I could be wrong - that field query[http://www.elasticsearch.org/guide/en/elasticsearch/reference/0.90/query-dsl-field-query.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/0.90/query-dsl-field-query.html)syntax no longer works (while equivalent query\_string query still does).  
> > > Has field query been deprecated?
> > > 
> > > this works for me:
> > > 
> > > {  
> > > "query": {  
> > > "query\_string": {  
> > > "default\_field": "name",  
> > > "query" : "foo"  
> > > }  
> > > }  
> > > }
> > > 
> > > this produces error:
> > > 
> > > {  
> > > "query": {  
> > > "field": {  
> > > "name": "foo"  
> > > }  
> > > }  
> > > }
> > > 
> > > [STARTED]: Failed to execute  
> > > [org.elasticsearch.action.search.SearchRequest@1dfcee26]  
> > > org.elasticsearch.search.SearchParseException: [admin\_1395519377710][0]:  
> > > from[-1],size[-1]: Parse Failure [Failed to parse source [{  
> > > "query": {  
> > > "field": {  
> > > "name": "foo"  
> > > }  
> > > }  
> > > }]]  
> > > at  
> > > org.elasticsearch.search.SearchService.parseSource(SearchService.java:595)  
> > > at  
> > > org.elasticsearch.search.SearchService.createContext(SearchService.java:498)  
> > > at  
> > > org.elasticsearch.search.SearchService.createAndPutContext(SearchService.java:472)  
> > > at  
> > > org.elasticsearch.search.SearchService.executeFetchPhase(SearchService.java:316)  
> > > at  
> > > org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteFetch(SearchServiceTransportAction.java:304)  
> > > at  
> > > org.elasticsearch.action.search.type.TransportSearchQueryAndFetchAction$AsyncAction.sendExecuteFirstPhase(TransportSearchQueryAndFetchAction.java:71)  
> > > at  
> > > org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:216)  
> > > at  
> > > org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:203)  
> > > at  
> > > org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction$2.run(TransportSearchTypeAction.java:186)  
> > > at  
> > > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
> > > at  
> > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
> > > at java.lang.Thread.run(Thread.java:744)  
> > > Caused by: org.elasticsearch.index.query.QueryParsingException:  
> > > [admin\_1395519377710] No query registered for [field]  
> > > at  
> > > org.elasticsearch.index.query.QueryParseContext.parseInnerQuery(QueryParseContext.java:221)
> > > 
> > > AFAIK the two are supposed to be identical queries.
> > > 
> > > -nikita
> > > 
> > > --  
> > > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/522d218d-312c-49b9-a1d1-912f4e5a7174%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/522d218d-312c-49b9-a1d1-912f4e5a7174%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/522d218d-312c-49b9-a1d1-912f4e5a7174%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/522d218d-312c-49b9-a1d1-912f4e5a7174%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > You received this message because you are subscribed to a topic in the  
> > Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit  
> > [https://groups.google.com/d/topic/elasticsearch/bZedUbHBS\_E/unsubscribe](https://groups.google.com/d/topic/elasticsearch/bZedUbHBS_E/unsubscribe).  
> > To unsubscribe from this group and all its topics, send an email to  
> > [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/CAFaqXJtws7MRnVHkvm572zvH5COoMFjYchKX88e%2BFBWmXZyx2Q%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAFaqXJtws7MRnVHkvm572zvH5COoMFjYchKX88e%2BFBWmXZyx2Q%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CAFaqXJtws7MRnVHkvm572zvH5COoMFjYchKX88e%2BFBWmXZyx2Q%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAFaqXJtws7MRnVHkvm572zvH5COoMFjYchKX88e%2BFBWmXZyx2Q%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/b9ea05ca-2540-47b6-9549-ed3fe318688a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b9ea05ca-2540-47b6-9549-ed3fe318688a%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Nikita\_Tovstoles](https://avatars.discourse-cdn.com/v4/letter/n/f17d59/32.png) [@Nikita\_Tovstoles](https://discuss.elastic.co/u/Nikita_Tovstoles)\
**Post date:** [March 25, 2014, 2:56am UTC](https://discuss.elastic.co/t/minor-field-query-syntax-appears-to-no-longer-work-in-es-1-0-1/16573/6 "2014-03-25T02:56:04Z")

</div>

No biggie. Meant it more as a PSA  
On Mar 24, 2014 7:43 PM, "Harry Waye" [harry@arachnys.com](mailto:harry@arachnys.com) wrote:

> An oversight I guess... can't see anything immediately obv. either. I  
> hope you tested before putting into production.
> 
> On Tuesday, March 25, 2014 2:36:27 AM UTC, Nikita Tovstoles wrote:
> 
> > Indeed. Fwiw I looked at 'v1x breaking changes' page before posting - no  
> > mention there  
> > On Mar 24, 2014 7:07 PM, "Josh Canfield" [joshca...@gmail.com](mailto:joshca...@gmail.com) wrote:
> > 
> > > This is pretty helpful.
> > > 
> > > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/)  
> > > reference/1.x/\_deprecations.html
> > > 
> > > - The field query has been removed. Use the query\_string[http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/query-dsl-query-string-query.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/query-dsl-query-string-query.html) query  
> > > instead.
> > > 
> > > Josh
> > > 
> > > On Mon, Mar 24, 2014 at 6:11 PM, Nikita Tovstoles \<[nikita.t...@gmail.com](mailto:nikita.t...@gmail.com)
> > > 
> > > > wrote:
> > > 
> > > > just a heads-up for folks who've upgraded to 1.0.x from 0.9x (as did  
> > > > I). It appears - and I could be wrong - that field query[http://www.elasticsearch.org/guide/en/elasticsearch/reference/0.90/query-dsl-field-query.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/0.90/query-dsl-field-query.html)syntax no longer works (while equivalent query\_string query still does).  
> > > > Has field query been deprecated?
> > > > 
> > > > this works for me:
> > > > 
> > > > {  
> > > > "query": {  
> > > > "query\_string": {  
> > > > "default\_field": "name",  
> > > > "query" : "foo"  
> > > > }  
> > > > }  
> > > > }
> > > > 
> > > > this produces error:
> > > > 
> > > > {  
> > > > "query": {  
> > > > "field": {  
> > > > "name": "foo"  
> > > > }  
> > > > }  
> > > > }
> > > > 
> > > > [STARTED]: Failed to execute [org.elasticsearch.action.  
> > > > search.SearchRequest@1dfcee26]  
> > > > org.elasticsearch.search.SearchParseException:  
> > > > [admin\_1395519377710][0]: from[-1],size[-1]: Parse Failure [Failed to parse  
> > > > source [{  
> > > > "query": {  
> > > > "field": {  
> > > > "name": "foo"  
> > > > }  
> > > > }  
> > > > }]]  
> > > > at org.elasticsearch.search.SearchService.parseSource(  
> > > > SearchService.java:595)  
> > > > at org.elasticsearch.search.SearchService.createContext(  
> > > > SearchService.java:498)  
> > > > at org.elasticsearch.search.SearchService.createAndPutContext(  
> > > > SearchService.java:472)  
> > > > at org.elasticsearch.search.SearchService.executeFetchPhase(  
> > > > SearchService.java:316)  
> > > > at org.elasticsearch.search.action.SearchServiceTransportAction.  
> > > > sendExecuteFetch(SearchServiceTransportAction.java:304)  
> > > > at org.elasticsearch.action.search.type.TransportSearchQueryAndFetchAc  
> > > > tion$AsyncAction.sendExecuteFirstPhase(TransportSearchQueryAndFetchAc  
> > > > tion.java:71)  
> > > > at org.elasticsearch.action.search.type.TransportSearchTypeAction$  
> > > > BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:216)  
> > > > at org.elasticsearch.action.search.type.TransportSearchTypeAction$  
> > > > BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:203)  
> > > > at org.elasticsearch.action.search.type.TransportSearchTypeAction$  
> > > > BaseAsyncAction$2.run(TransportSearchTypeAction.java:186)  
> > > > at java.util.concurrent.ThreadPoolExecutor.runWorker(  
> > > > ThreadPoolExecutor.java:1145)  
> > > > at java.util.concurrent.ThreadPoolExecutor$Worker.run(  
> > > > ThreadPoolExecutor.java:615)  
> > > > at java.lang.Thread.run(Thread.java:744)  
> > > > Caused by: org.elasticsearch.index.query.QueryParsingException:  
> > > > [admin\_1395519377710] No query registered for [field]  
> > > > at org.elasticsearch.index.query.QueryParseContext.parseInnerQuery(  
> > > > QueryParseContext.java:221)
> > > > 
> > > > AFAIK the two are supposed to be identical queries.
> > > > 
> > > > -nikita
> > > > 
> > > > --  
> > > > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > > msgid/elasticsearch/522d218d-312c-49b9-a1d1-912f4e5a7174%  
> > > > [40googlegroups.com](http://40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/522d218d-312c-49b9-a1d1-912f4e5a7174%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/522d218d-312c-49b9-a1d1-912f4e5a7174%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > .  
> > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > 
> > > --  
> > > You received this message because you are subscribed to a topic in the  
> > > Google Groups "elasticsearch" group.  
> > > To unsubscribe from this topic, visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > topic/elasticsearch/bZedUbHBS\_E/unsubscribe.  
> > > To unsubscribe from this group and all its topics, send an email to  
> > > [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > msgid/elasticsearch/CAFaqXJtws7MRnVHkvm572zvH5COoM  
> > > FjYchKX88e%2BFBWmXZyx2Q%[40mail.gmail.com](http://40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CAFaqXJtws7MRnVHkvm572zvH5COoMFjYchKX88e%2BFBWmXZyx2Q%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAFaqXJtws7MRnVHkvm572zvH5COoMFjYchKX88e%2BFBWmXZyx2Q%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > > .  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > You received this message because you are subscribed to a topic in the  
> > Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit  
> > [https://groups.google.com/d/topic/elasticsearch/bZedUbHBS\_E/unsubscribe](https://groups.google.com/d/topic/elasticsearch/bZedUbHBS_E/unsubscribe).  
> > To unsubscribe from this group and all its topics, 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/b9ea05ca-2540-47b6-9549-ed3fe318688a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b9ea05ca-2540-47b6-9549-ed3fe318688a%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/b9ea05ca-2540-47b6-9549-ed3fe318688a%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/b9ea05ca-2540-47b6-9549-ed3fe318688a%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CAJwaA208p3oa7fcK9EeNLdnpVhc3LHUtgE8U0%3De3FgoV7T6Bag%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAJwaA208p3oa7fcK9EeNLdnpVhc3LHUtgE8U0%3De3FgoV7T6Bag%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:40am UTC](https://discuss.elastic.co/t/minor-field-query-syntax-appears-to-no-longer-work-in-es-1-0-1/16573/7 "2017-07-06T01:40:55Z")

</div>


