Skip to content

Another numbers-as-strings error #56

@clintongormley

Description

@clintongormley

Hiya

curl -XGET 'http://127.0.0.1:9200/_all/_search'  -d '
{
   "fields" : [],
   "query" : {
      "field" : {
         "text" : {
            "boost" : "1",
            "query" : "foo"
         }
      }
   }
}
'

Returns:

SearchParseException[[ia_object][4]: query[null],from[-1],size[-1]: Parse Failure [Failed to parse [{
   \"fields\" : [],
   \"query\" : {
      \"field\" : {
         \"text\" : {
            \"boost\" : \"1\",
            \"query\" : \"foo\"
         }
      }
   }
}
]]]; nested: QueryParsingException[[ia_object] Failed to parse]; nested: JsonParseException[Current token (VALUE_STRING) not numeric, can not use numeric value accessors
 at [Source: [B\@3256e684; line: 6, column: 24]]; 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions