Skip to content

Add config option to specify max file size #118

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Dec 9, 2024

Conversation

brendan-kellam
Copy link
Contributor

@brendan-kellam brendan-kellam commented Dec 9, 2024

This PR adds the settings.maxFileSize option to the config schema, which allows users to specify the maximum file size (in bytes) that zoekt should index. E.g.,

{
    "$schema": "./schemas/v2/index.json",
    "settings": {
        "maxFileSize": 4194304 // Set size to 4MB (default 2MB)
    }
    // ...
}

All repositories in the config will use this file limit when indexing.

@brendan-kellam brendan-kellam marked this pull request as ready for review December 9, 2024 22:05
@brendan-kellam brendan-kellam changed the title Add config option to specify file limit size Add config option to specify max file size Dec 9, 2024
@brendan-kellam brendan-kellam merged commit 111023b into main Dec 9, 2024
3 checks passed
@brendan-kellam brendan-kellam deleted the bkellam/fileLimitSize branch December 9, 2024 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant