1 package v1alpha1 2 3 // QueryServerConfig The external query server is a special OS process which communicates with CouchDB over standard input/output using a very simple line-based protocol with JSON messages. 4 type QueryServerConfig struct { 5 // Specifies the delay in seconds before view index changes are committed to disk. 6 CommitFreq *int `json:"commit_freq,omitempty" ini:"commit_freq,omitempty"` 7 // Hard limit on the number of OS processes usable by Query Servers. 8 ProcessLimit *int `json:"processLimit,omitempty" ini:"os_process_limit,omitempty"` 9 // The timeout for a process used by Query Servers. 10 ProcessTimeout *int `json:"processTimeout,omitempty" ini:"os_process_timeout,omitempty"` 11 // Soft limit on the number of OS processes usable by Query Servers. 12 SoftLimit *int `json:"softLimit,omitempty" ini:"os_process_soft_limit,omitempty"` 13 // Controls Reduce overflow error that raises when output of reduce functions. 14 ReduceLimit *bool `json:"reduceLimit,omitempty" ini:"reduceLimit,omitempty"` 15 } 16 17 // NativeQueryConfig CouchDB has a native Erlang query server, allowing you to write your map/reduce functions in Erlang. 18 type NativeQueryConfig struct { 19 // Enables or disables the Native Erlang Query Server. 20 Enable *bool `json:"enable,omitempty" ini:"enable_erlang_query_server,omitempty"` 21 } 22 23 // SearchConfig CouchDB’s search subsystem can be configured via the dreyfus configuration section. 24 type SearchConfig struct { 25 // The name and location of the Clouseau Java service required to enable Search functionality. 26 Name *string `json:"name,omitempty" ini:"name,omitempty"` 27 // The number of times CouchDB will try to reconnect to Clouseau. 28 RetryLimit *int `json:"retryLimit,omitempty" ini:"retry_limit,omitempty"` 29 // The number of results returned from a global search query if no limit is specified. 30 Limit *int `json:"limit,omitempty" ini:"limit,omitempty"` 31 // The number of results returned from a search on a partition of a database if no limit is specified. 32 LimitPartitions *int `json:"limitPartitions,omitempty" ini:"limit_partitions,omitempty"` 33 // The maximum number of results that can be returned from a global search query. 34 MaxLimit *int `json:"maxLimit,omitempty" ini:"max_limit,omitempty"` 35 // The maximum number of results that can be returned when searching a partition of a database. 36 MaxLimitParts *int `json:"maxLimitPartitions,omitempty" ini:"max_limit_partitions,omitempty"` 37 } 38