Added shard preference setting to query

Added shard preference setting to query.
Merge pull request #52 from janghwan/master

Added shard preference setting to query