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

How to set source filtering in query? #63

Closed
knoguchi opened this issue Jan 30, 2015 · 2 comments
Closed

How to set source filtering in query? #63

knoguchi opened this issue Jan 30, 2015 · 2 comments

Comments

@knoguchi
Copy link

I would like to set the source filter. Is this feature supported by the DSL? If not, would you add this?

@knoguchi knoguchi changed the title How to specifi source filtering in query? How to set source filtering in query? Jan 30, 2015
@honzakral
Copy link
Contributor

Currently it is not supported directly. You can, however, use the extra method:

s = Search()
s = s.extra(_source={'include': ['title', 'body']})

I am not sure this is super useful to add as a separate method since it can be done this easily, but if more people request it I will add it.

Hope this helps.

@knoguchi
Copy link
Author

Thanks for the answer. I will use .extra().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants