GitHub search fields

GitHub writes 6 fields into Confluence's own search index. Once a page has been indexed you can filter and sort by them in Capable Search, and use them in ordinary Confluence CQL.


#The fields

Field

What it holds

Git File Count / Git Repositories / Git File Types / Git Organizations / Git Last Updated

Match pages by embedded Git content: file count, repository, file type, organisation and last update.

<hash>_git_count

Total number of GitHub files referenced on the page. Example: <hash>_git_count >= 5. The field name drops the capable_refs_ part, so it is <hash>_git_count, not <hash>_capable_refs_git_count.

<hash>_git_repos

GitHub repository, written as "owner/name", referenced by a file on the page. Example: <hash>_git_repos = "capable-software/capable-repo".

<hash>_git_orgs

GitHub organisation or owner referenced by a file on the page. It is the part of the repository name before the slash.

<hash>_git_file_types

File type of GitHub files referenced on the page, taken from the file extension. Example values are "ts" and "py".

<hash>_git_updated

Does not work at the moment. The field is offered as a number, but the value stored is a date written as text, so a query on it cannot be matched.



Indexed, then searchable. In that order.