Skip to content

Reject index requests that contain metadata fields in the request body. #3917

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

Closed
martijnvg opened this issue Oct 15, 2013 · 2 comments
Closed
Assignees

Comments

@martijnvg
Copy link
Member

Metadata fields (_routing, _parent, _ttl) can also be specified in the request body and in certain scenarios they don't get indexed (just stored in the source).

Example (ttl is not configured):

{
"_ttl" : 1
}

A term query on _ttl field would fail in the case, this can be confusing, especially when the ttl feature isn't used at all.

In the case that metadata fields are in the request body and these fields don't get indexed then this index request should fail.

@ghost ghost assigned martijnvg Oct 15, 2013
@kevinkluge kevinkluge added v1.1.0 and removed v1.0.1 labels Feb 11, 2014
@s1monw
Copy link
Contributor

s1monw commented Mar 12, 2014

@martijnvg are you gonna work on this?

@s1monw s1monw added v1.2.0 and removed v1.1.0 labels Mar 12, 2014
@martijnvg martijnvg added v1.3.0 and removed v1.2.0 labels Apr 30, 2014
@martijnvg martijnvg removed the v1.3.0 label Jul 9, 2014
@clintongormley
Copy link
Contributor

Close in favour of #6736

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

4 participants