Use Github As a Content Source
SearchUnify can crawl, index, and search your Github repositories. This article gets you started.
SearchUnify ignores user permissions during searches. Kyle can find a file named "Accounts" in search irrespective of whether they have access to the file or not.
You should have access to the repositories to be crawled.
Establish a Connection
- Navigate to Content Sources.
- Click Add New Content Source.
- From the search box, find Github and click Add.
- Give your content source a Name.
- Pick either No Authentication or OAuth from Authentication Type. On selecting No Authentication, you can crawl public GitHub repositories. OAuth allows you to index private GitHub repositories.
- Select the comments language in Language.
- Select the type of your Github account in Repository Type. Individual developers can select User but the correct way forward for companies is Organization.
- Label your repository in Organization/User Name.
- Click Connect.
- Click Next if a window pops up with the "Connection Successful" message.
Set Up Crawl Frequency
The first crawl is always manual and is performed after configuring the content source. For now, keep the frequency to its default value Never and click Set and move to the next section.
Select Fields and Repositories for Indexing
SearchUnify indexes one Github content type (or object),
issues. An admin can decide which
issues fields are indexed.
- Click to edit
- Add, edit, or remove fields and click Save.
- Navigate to By Spaces, use the index to find your repositories, check them, and click Save. If you don't specify repositories, then all your Github repositories are indexed.
After the First Crawl
Return to the Content Sources screen and click in Actions. The number of indexed documents is updated after the crawl is complete. You can view crawl progress in in Actions. Documentation on crawl progress is in View Crawl Logs.
Review the settings in Rules if there is no progress in Crawl Logs.
For Mamba '22 and newer instances, search isn't impacted during a crawl. However, in older instances, some documents remain inaccessible while a crawl is going on.
Once the first crawl is complete, click in Actions open the content source for editing, and set a crawl frequency.
- In Choose a Date, click to fire up a calendar and select a date. Only the data after the selected date is indexed.
- Use the Frequency dropdown to select how often SearchUnify should index the data. For illustration, the frequency has been set to Weekly and Tuesday has been chosen as the crawling day. Whenever the Frequency is other than Never, a third dropdown appears where you can specify the interval. Also, whenever Frequency is set to Hourly, then manual crawls are disabled.
- Click Set to save crawl frequency settings. On clicking Set, you are taken to the Rules tab.
Data Deletion and SU Index
A method to update the index in real time is to enable event subscriptions, which supplement existing crawls and synchronize data between your Jira instance and SearchUnify in real time. Check out Enable Event Subscription in Github.
Last updated: Friday, September 22, 2023
Or, send us your review at email@example.com