__Have you searched for similar issues before submitting this one?__
I think it's related to: https://github.com/10up/ElasticPress/issues/1257 and https://github.com/10up/ElasticPress/issues/1188 and https://github.com/10up/ElasticPress/issues/649
__Is this a bug, question or feature request?__
I'm afraid i'll have to say bug. It always seems to get ignored due to inactivity.
__Describe the issue you encountered:__
basically EP doesn't respect the post_type parameter of the query.
Be it in the url as parameter ie:
/?s=query&post_type=pepe
or with set query:
$query->set('post_type', 'pepe');
__Current WordPress version?__
5.2.2
__Current ElasticPress version?__
3.0.3
__Current Elasticsearch version?__
6.3.0
__Where do you host your Elasticsearch server?__
self host
__What ElasticPress features do you have currently active?__
Post Search, Facets
__Other plugins installed (WooCommerce, Simple Redirect Manager, etc..)?__
Advanced Custom Fields PRO Version 5.8.1 by Elliot Condon
Classic Editor Version 1.5 by WordPress Contributors
Custom Post Type UI Version 1.6.2 by WebDevStudios
ElasticPress Version 3.0.3 by Taylor Lovett, Matt Gross, Aaron Holbrook, 10up
GD Rating System Version 3.5.5 by Milan Petrovic
Query Monitor Version 3.3.6 by John Blackbourn
Related Posts By Taxonomy Version 2.7.1 by keesiemijer
Term Management Tools Version 1.1.4 by scribu
W3 Total Cache Version 0.9.7.5 by Frederick Townes
WP Mail SMTP Version 1.4.2 by WPForms
WP User Avatar Version 2.2.4 by flippercode
Yoast SEO Version 10.1.3 by Team Yoast (Latest version: 11.5)
__Steps to reproduce:__
&post_type=pepe to the search url__Screenshots, if needed:__

@Salamander3 your dreams may be coming true. This seems like a bug. @oscarssanchez will look at it.
Hi @Salamander3 ,
Unfortunately, I'm not able to reproduce the behavior you are describing, even with the plugins you listed.
Default results: https://cloudup.com/cDfbrXwT65l
With post_type=pepe: https://cloudup.com/clUOzLeSLcj
The only way I got all post types to show up when using a ?post_type=<post_type> type filter in the URL was when I used an invalid post type name in the url (I tried pepes instead of the correct pepe and it showed all post types).
A few things to try:
?post_type=post do you see only posts coming back?It was a problem on my end, i found it and fixed it sorry.
Most helpful comment
@Salamander3 your dreams may be coming true. This seems like a bug. @oscarssanchez will look at it.