[role="xpack"]
[[spaces-settings-kb]]
=== Spaces settings in {kib}
++++
Spaces settings
++++
By default, spaces is enabled in {kib}. To secure spaces, <>.
`xpack.spaces.maxSpaces`::
The maximum number of spaces that you can use with the {kib} instance. Some {kib} operations
return all spaces using a single `_search` from {es}, so you must
configure this setting lower than the `index.max_result_window` in {es}.
The default is `1000`.