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

source not returned when * specified in fields list #1541

Closed
mattweber opened this issue Dec 13, 2011 · 0 comments
Closed

source not returned when * specified in fields list #1541

mattweber opened this issue Dec 13, 2011 · 0 comments

Comments

@mattweber
Copy link
Contributor

The source field is not returned in a query where * is specified and source is explicitly asked for.

Works as expected, returns the name and source

curl -XGET 'http://localhost:9200/testindex/testtype/_search?q=lucene+in+action&pretty=true' -d '{"fields":["name","_source"]}'

Does not work, returns only the stored fields, no source.

curl -XGET 'http://localhost:9200/testindex/testtype/_search?q=lucene+in+action&pretty=true' -d '{"fields":["*","_source"]}'

Happens using both DSL and URI Request fields parameter.

@kimchy kimchy closed this as completed in 922833c Dec 14, 2011
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

2 participants