with values: open, closed, none, all Relates to #9295
Also adds REST test for /_search_shards Closes #5907