add simple querying ability by kv pair

When get-doc and get-docs, it has the ability to search data based on
kv supplied in the parameter