Initial implementation of query
Added indexing docs