Add thread type feature

@jimabramson
do you think this will outperform two separate queries without an `or`?