Skip to content

Commit

Permalink
Testing: Remove plus sign from YAML test due to encoding issue
Browse files Browse the repository at this point in the history
The plus sign is not treated correctly in encoding and can lead
to problems, if the search request is encoded as HTTP parameter
instead of the HTTP body.

Relates elastic#9769
  • Loading branch information
spinscale committed Feb 19, 2015
1 parent 6c3be17 commit 5d60a2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rest-api-spec/test/script/30_expressions.yaml
Expand Up @@ -11,5 +11,5 @@
- do:
indices.refresh: {}

- do: { search: { body: { script_fields : { my_field : { lang: expression, script: 'doc["age"].value + 19' } } } } }
- match: { hits.hits.0.fields.my_field: [ 42.0 ] }
- do: { search: { body: { script_fields : { my_field : { lang: expression, script: 'doc["age"].value' } } } } }
- match: { hits.hits.0.fields.my_field: [ 23.0 ] }

0 comments on commit 5d60a2e

Please sign in to comment.