Want to search by a keyword within different document types but with different query filters

I have multiple document types, example content1, content2, content3.... contentN.
My current implementation is a single query that is searching for some strings/keywords within all document types.
Also current query has single filter.
I want to add more filter based on each document types. for example:
content1 => group1
content2 => group2
content3 => group3
contentN => ''

I tried finding any solution but not getting any similar situation. Please help me if this possible asap.

Please don't make your subjects so big, they should be a summary of your question, not the entire thing.

Thanks for highlighting, Just modified

Think of _type as just another field, because on the lucene layer that is all it is. Then all you need to do is just add a filter on that type.