Fix jsdoc consistency comments
Support setting the search type

Support settings various search types such as scan, count,
dfs_query_then_fetch, etc.  Closes 13.