|
options:- :include_docs [true, false] Perform get with key on rows returned with key (non-reduce)
- :descending [true, false], reverse order of returned rows
- :key [String, Fixnum, Hash, Array] Return only rows with index key that match :key, simple and compound keys can be used (JSON encoded)
- :keys [Array] Return only rows that match array of keys (see :key), both simple and compound keys (JSON encoded)
- :startkey [String, Fixnum, Hash, Array] Range query from :start_key to :end_key (JSON encoded)
- :endkey [String, Fixnum, Hash, Array] Range query from :start_key to :end_key (JSON encoded)
- :startkey_docid [String] Document id to start with (to allow pagination for duplicate startkeys
- :endkey_docid [String] Last document id to include in the output (to allow pagination for duplicate startkeys)
- :inclusive_end [true, false] If true, specificed end key is included in result
- :limit [Fixnum] Limit the results returned
- :skip [Fixnum] Skip a number of results before returning (can be used with :limit to page through results)
- :reduce [true, false] Perform the reduce function defined in the view. If there is no reduce defined default is false and setting to true will return error.
- :group [true, false] Groups results using the view defined reduce function
- :group_level [Fixnum] Sets the grouping level for compound keys
- :stale [:false, :update_after, :ok] Consistency setting, :false initiates Design Document to update indexes before returning results, :update_after updates indexes after returning results, :ok doesn’t trigger indexers and returns existing indexed results
- :body [Hash] Takes same parameters as options but does it as a POST if the query has many parameters or is complex
- :on_error [:continue, :stop] Behavior setting if an error occurs during view query
复制代码 |
|