Skip to content

Add config option to specify max file size - #118

Merged
brendan-kellam merged 5 commits into
mainfrom
bkellam/fileLimitSize
Dec 9, 2024
Merged

Add config option to specify max file size#118
brendan-kellam merged 5 commits into
mainfrom
bkellam/fileLimitSize

Conversation

@brendan-kellam

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

Copy link
Copy Markdown
Contributor

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.

Comment thread packages/backend/src/db.ts
Comment thread packages/backend/src/main.test.ts Outdated
@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
@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