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

Validate query ignores type filter #6116

Closed
javanna opened this issue May 10, 2014 · 0 comments
Closed

Validate query ignores type filter #6116

javanna opened this issue May 10, 2014 · 0 comments

Comments

@javanna
Copy link
Member

javanna commented May 10, 2014

Steps to reproduce:

PUT twitter

GET twitter/tweet/_validate/query?explain
{
  "query" : {
    "term" : {"field":"value"}        
  }
}

{
   "valid": true,
   "_shards": {
      "total": 1,
      "successful": 1,
      "failed": 0
   },
   "explanations": [
      {
         "index": "twitter",
         "valid": true,
         "explanation": "field:value"
      }
   ]
}

The resulting above explanation should be wrapped into a filtered query _type:tweet but it isn't.

@javanna javanna self-assigned this May 10, 2014
javanna added a commit to javanna/elasticsearch that referenced this issue May 12, 2014
Made sure that a match_all query is used when no query is specified and ensure no NPE is thrown either.
Also used the same code path as the search api to ensure that alias filters are taken into account, same for type filters.

Closes elastic#6111 Closes elastic#6112 Closes elastic#6116
javanna added a commit that referenced this issue May 12, 2014
Made sure that a match_all query is used when no query is specified and ensure no NPE is thrown either.
Also used the same code path as the search api to ensure that alias filters are taken into account, same for type filters.

Closes #6111 Closes #6112 Closes #6116
javanna added a commit that referenced this issue May 19, 2014
Made sure that a match_all query is used when no query is specified and ensure no NPE is thrown either.
Also used the same code path as the search api to ensure that alias filters are taken into account, same for type filters.

Closes #6111 Closes #6112 Closes #6116
@javanna javanna added the v1.1.2 label May 19, 2014
mute pushed a commit to mute/elasticsearch that referenced this issue Jul 29, 2015
Made sure that a match_all query is used when no query is specified and ensure no NPE is thrown either.
Also used the same code path as the search api to ensure that alias filters are taken into account, same for type filters.

Closes elastic#6111 Closes elastic#6112 Closes elastic#6116
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant