support filtered results through url

Change-Id: I6e36e837aa5810b407169183159039023744ac70
Reviewed-on: http://review.couchbase.org/24908
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Ronnie Sun <ronnie@couchbase.com>