No biggie. Meant it more as a PSA On Mar 24, 2014 7:43 PM, "Harry Waye" <[email protected]> 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" <[email protected]> wrote: >> >>> This is pretty helpful. >>> >>> 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> >>> query >>> instead. >>> >>> Josh >>> >>> >>> On Mon, Mar 24, 2014 at 6:11 PM, Nikita Tovstoles <[email protected] >>> > 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>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 [email protected]. >>>> 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?utm_medium=email&utm_source=footer> >>>> . >>>> For more options, visit 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. >>> To unsubscribe from this group and all its topics, send an email to >>> [email protected]. >>> To view this discussion on the web visit https://groups.google.com/d/ >>> msgid/elasticsearch/CAFaqXJtws7MRnVHkvm572zvH5COoM >>> FjYchKX88e%2BFBWmXZyx2Q%40mail.gmail.com<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. >>> >> -- > 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. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > 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?utm_medium=email&utm_source=footer> > . > For more options, visit 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAJwaA208p3oa7fcK9EeNLdnpVhc3LHUtgE8U0%3De3FgoV7T6Bag%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
