•  


Managing search indices for your instance - GitHub Enterprise Server 3.12 Docs
Skip to main content

Managing search indices for your instance

GitHub Enterprise Server uses Elasticsearch to power search features, and provides tools for managing search and index behavior.

Who can use this feature?

Enterprise owners can manage search indices for a GitHub Enterprise Server instance.

About search for GitHub Enterprise Server

Users can search your instance to find, navigate, and understand issues, pull requests, code, and other content on GitHub Enterprise Server. Elasticsearch powers the search functionality on your instance. You can view the current status of Elasticsearch, and you can control search and index behavior.

For more information about search for GitHub Enterprise Server, see " Search on GitHub documentation ." For more information about Elasticsearch, see the Elasticsearch website .

About index management

GitHub Enterprise Server reconciles the state of the search index with data on the instance automatically and regularly, including:

  • Issues, pull requests, repositories, and users in the database
  • Git repositories (source code) on disk

In normal use, enterprise owners do not need to create new indices or schedule repair jobs. For troubleshooting or other support purposes, GitHub Support may instruct you to run a repair job.

Viewing search indices

  1. In the upper-right corner of any page, click .
  2. In the left sidebar, click Search indexes .
  3. Under "Index management", click the search index you want to view.

Creating a new search index

  1. In the upper-right corner of any page, click .
  2. In the left sidebar, click Search indexes .
  3. Next to "Index management", click Create new index .
  4. Select the Select the index to create dropdown, then click the search index you want to create.
  5. If you want the index to be searchable, select the Make this index searchable checkbox.
  6. If you want the index to be writable, select the Make this index writable checkbox.
  7. Click Create index .

Managing search indices

When you view an existing search index in the site admin dashboard, you can perform the following actions:

  • Make the index searchable.
  • Make the index writable.
  • Update the index.
  • Delete the index.
  • Reset the index repair state.
  • Start a new index repair job.
  • Enable or disable index repair jobs.

You can enable or disable both search and index operations for source code. For more information about code search, see " Searching code ."

  1. In the upper-right corner of any page, click .
  2. In the left sidebar, click Search indexes .
  3. In the "Code search" section, next to "Searching" or "Indexing", click Enable or Disable .

Repairing search indices

Your instance uses repair jobs to reconcile the data, and schedules a repair job in the background when the following events occur:

  • A new search index is created.
  • Missing data needs to be backfilled.
  • Old search data needs to be updated.

In the "Repair" section of the search index, a progress bar shows the current status of a repair job across background workers. You can ignore the value shown in the progress bar after a repair job has completed. The progress bar shows the difference between the repair offset and the highest record ID in the database, and will decrease as more repositories are added to your GitHub Enterprise Server instance even though those repositories are actually indexed.

To minimize the effects on I/O performance and reduce the chances of operations timing out, run the repair job during off-peak hours. As the job reconciles the search index with database and Git repository data, one CPU will be used. Monitor your system's load averages and CPU usage with a utility like top . If you don't notice any significant increase in resource consumption, it should also be safe to run an index repair job during peak hours.

Repair jobs use a "repair offset" for parallelization. This is an offset into the database table for the record being reconciled. Multiple background jobs can synchronize work based on this offset.

- "漢字路" 한글한자자동변환 서비스는 교육부 고전문헌국역지원사업의 지원으로 구축되었습니다.
- "漢字路" 한글한자자동변환 서비스는 전통문화연구회 "울산대학교한국어처리연구실 옥철영(IT융합전공)교수팀"에서 개발한 한글한자자동변환기를 바탕하여 지속적으로 공동 연구 개발하고 있는 서비스입니다.
- 현재 고유명사(인명, 지명등)을 비롯한 여러 변환오류가 있으며 이를 해결하고자 많은 연구 개발을 진행하고자 하고 있습니다. 이를 인지하시고 다른 곳에서 인용시 한자 변환 결과를 한번 더 검토하시고 사용해 주시기 바랍니다.
- 변환오류 및 건의,문의사항은 juntong@juntong.or.kr로 메일로 보내주시면 감사하겠습니다. .
Copyright ⓒ 2020 By '전통문화연구회(傳統文化硏究會)' All Rights reserved.
 한국   대만   중국   일본