Join query type in Query DSL

How many primary shards does the index have? If greater than 1, how are you specifying routing and document IDs?