I would like to set the source filter. Is this feature supported by the DSL? If not, would you add this?
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.
Thanks for the answer. I will use .extra().
Most helpful comment
Currently it is not supported directly. You can, however, use the
extramethod: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.