Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

msearch should accept a leading \n #1736

Closed
clintongormley opened this issue Feb 24, 2012 · 0 comments
Closed

msearch should accept a leading \n #1736

clintongormley opened this issue Feb 24, 2012 · 0 comments

Comments

@clintongormley
Copy link

This query, with a \n at the start of the request body, throws an error:

curl -XGET 'http://127.0.0.1:9200/_all/_msearch?pretty=1'  -d '
{"index":"bar"}
{}
'
{
  "responses" : [ {
    "error" : "SearchPhaseExecutionException[Failed to execute phase [query], total failure; shardFailures {[M13f_44ASzCtykP8D-y-Og][geonames_temp][0]: SearchParseException[[geonames_temp][0]: from[-1],size[-1]: Parse Failure [Failed to parse source [{\"index\":\"bar\"}]]]; nested: SearchParseException[[geonames_temp][0]: from[-1],size[-1]: Parse Failure [No parser for element [index]]]; }{[M13f_44ASzCtykP8D-y-Og][iannounce_object_1329422272][3]: SearchParseException[[iannounce_object_1329422272][3]: from[-1],size[-1]: Parse Failure [Failed to parse source [{\"index\":\"bar\"}]]]; nested: SearchParseException[[iannounce_object_1329422272][3]: from[-1],size[-1]: Parse Failure [No parser for element [index]]]; }{[M13f_44ASzCtykP8D-y-Og][foo][4]: SearchParseException[[foo][4]: from[-1],size[-1]: Parse Failure [Failed to parse source [{\"index\":\"bar\"}]]]; nested: SearchParseException[[foo][4]: from[-1],size[-1]: Parse Failure [No parser for element [index]]]; }{[M13f_44ASzCtykP8D-y-Og][geonames_1329424673][0]: SearchParseException[[geonames_1329424673][0]: from[-1],size[-1]: Parse Failure [Failed to parse source [{\"index\":\"bar\"}]]]; nested: SearchParseException[[geonames_1329424673][0]: from[-1],size[-1]: Parse Failure [No parser for element [index]]]; }{[M13f_44ASzCtykP8D-y-Og][foo][1]: SearchParseException[[foo][1]: from[-1],size[-1]: Parse Failure [Failed to parse source [{\"index\":\"bar\"}]]]; nested: SearchParseException[[foo][1]: from[-1],size[-1]: Parse Failure [No parser for element [index]]]; }{[M13f_44ASzCtykP8D-y-Og][iannounce_object_1329422272][2]: SearchParseException[[iannounce_object_1329422272][2]: from[-1],size[-1]: Parse Failure [Failed to parse source [{\"index\":\"bar\"}]]]; nested: SearchParseException[[iannounce_object_1329422272][2]: from[-1],size[-1]: Parse Failure [No parser for element [index]]]; }{[M13f_44ASzCtykP8D-y-Og][iannounce_object_1329422272][1]: SearchParseException[[iannounce_object_1329422272][1]: from[-1],size[-1]: Parse Failure [Failed to parse source [{\"index\":\"bar\"}]]]; nested: SearchParseException[[iannounce_object_1329422272][1]: from[-1],size[-1]: Parse Failure [No parser for element [index]]]; }{[M13f_44ASzCtykP8D-y-Og][foo][0]: SearchParseException[[foo][0]: from[-1],size[-1]: Parse Failure [Failed to parse source [{\"index\":\"bar\"}]]]; nested: SearchParseException[[foo][0]: from[-1],size[-1]: Parse Failure [No parser for element [index]]]; }]"
  } ]
}

But the same format for bulk is accepted.

@kimchy kimchy closed this as completed in c72772e Feb 26, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants