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

Suppressing query parsing errors in filterjoin query #94

Open
fabiocorneti opened this issue Aug 24, 2016 · 1 comment
Open

Suppressing query parsing errors in filterjoin query #94

fabiocorneti opened this issue Aug 24, 2016 · 1 comment
Labels
Milestone

Comments

@fabiocorneti
Copy link
Contributor

The script below creates two indices and executes a filterjoin having a terms query with an invalid value for the name parameter; is the error in the query suppressed by design?

#!/bin/bash
ES=http://localhost:9200

curl -XDELETE $ES/places
curl -XDELETE $ES/people
curl -XPUT $ES/places
curl -XPUT $ES/people
curl -XPUT $ES/people/_mappings/person -d '{"person": {"properties": {"name": {"type": "string", "index": "not_analyzed"}, "city": {"type": "string", "index": "not_analyzed"}}}}'
curl -XPUT $ES/places/_mappings/city -d '{"city": {"properties": {"name": {"type": "string", "index": "not_analyzed"}}}}'
curl -XPOST $ES/people/person/luke -d '{"name": "Jack Foo", "city": "Rome"}'
curl -XPOST $ES/people/person/anakin -d '{"name": "John Bar", "city": "Prague"}'
curl -XPOST $ES/places/city/Prague -d '{"name": "Prague"}'
curl -XPOST $ES/places/city/Rome -d '{"name": "Rome"}'

# Search for people in Rome using a terms query with an invalid parameter value; response code is 200
curl -v -XPOST $ES/people/person/_coordinate_search?pretty -d '{
  "filter": {
    "filterjoin": {
      "city": {
        "indices": ["places"],
        "types": ["city"],
        "path": "name",
        "query": {
          "terms": {
            "name": "Rome"
          }
        }
      }
    }
  }
}'

# Standalone query fails
curl -XPOST $ES/places/city/_coordinate_search?pretty -d '{
  "query": {
    "terms": {
      "name": "Rome"
    }
  }
}'
@rendel rendel added bug and removed question labels Aug 24, 2016
@rendel rendel added this to the 2.3.6 milestone Aug 24, 2016
@rendel
Copy link
Contributor

rendel commented Aug 24, 2016

yes, looks like errors on the first phase of the query (terms query) is not reported back up to the coordinator properly.

@rendel rendel modified the milestones: 2.4.2, 2.4.1 Oct 18, 2016
@rendel rendel modified the milestones: 2.4.4, 2.4.2 Jan 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants