[Code] update doc about index scheduler (#39869) (#39875)

This commit is contained in:
chongzhe 2019-06-27 23:57:06 -07:00 committed by GitHub
parent 8cee64c980
commit 12a124098d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

View file

@ -15,7 +15,14 @@ Deleting a repo removes it from local storage and the Elasticsearch index.
[float]
==== Reindex a repo
*Code* automatically reindexes an imported repo at set intervals, but in some cases you might need to manually refresh the index. For example, you might refresh an index after a new language server is installed. Or, you might want to immediately update the index to the HEAD revision. Click *Reindex* to initiate a reindex.
You can set *Code* to automatically reindex imported repos at set intervals by set the following config in `kibana.yaml`.
[source,yaml]
----
xpack.code.disableIndexScheduler: false
----
In some cases you might need to manually refresh the index besides automatic indexing. For example, you might refresh an index after a new language server is installed. Or, you might want to immediately update the index to the HEAD revision. Click *Reindex* to initiate a reindex.
[float]
==== Clone URL management

View file

@ -35,6 +35,9 @@ Whitelist of protocols for git clone address. Defaults to `[ 'https', 'git', 'ss
`xpack.code.security.enableGitCertCheck`::
Whether enable HTTPS certificate check when clone from HTTPS URL.
`xpack.code.disableIndexScheduler`::
Whether automatic index update is disabled. Defaults to `true`.
`xpack.code.maxWorkspace`::
Maximal number of workspaces each language server allows to span. Defaults to `5`.