refactor: add file size and checksum fields#290
Merged
Conversation
Added file size field `kFileSize` to both Content and OcrText namespaces in field_names.h to support file size based searching. Added checksum field `kCheckSum` specifically to OcrText namespace for integrity verification of OCR processed files. These changes enable: 1. File size based searching capability in the search engine 2. Checksum verification for OCR processed documents 3. Better indexing and filtering capabilities Influence: 1. Test searching with file size conditions 2. Verify OCR document integrity checks with checksum field 3. Ensure backward compatibility with existing search queries refactor: 添加文件大小和校验和字段 在field_names.h中向Content和OcrText命名空间添加了文件大小字段`kFileSize` 以支持基于文件大小的搜索。 向OcrText命名空间专门添加了校验和字段`kCheckSum`用于OCR处理文件的完整性 验证。 这些改动实现了: 1. 搜索引擎中对文件大小条件的搜索能力 2. 使用校验和验证OCR处理文档的完整性 3. 更好的索引和过滤能力 Influence: 1. 测试带文件大小条件的搜索功能 2. 使用校验和字段验证OCR文档完整性 3. 确保与现有搜索查询的向后兼容性
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Johnson-zs The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
deepin pr auto review你好!我是CodeGeeX。我已仔细审查了你提供的Git Diff内容。这次修改主要为 以下是我从语法逻辑、代码质量、代码性能和代码安全四个维度提出的审查意见和改进建议: 1. 语法逻辑
2. 代码质量
3. 代码性能
4. 代码安全
总结代码本身没有硬性错误,可以合并。但强烈建议评估 |
Contributor
Author
|
/forcemerge |
|
This pr force merged! (status: blocked) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added file size field
kFileSizeto both Content and OcrText namespacesin field_names.h to support file size based searching.
Added checksum field
kCheckSumspecifically to OcrText namespace forintegrity verification of OCR processed files.
These changes enable:
Influence:
refactor: 添加文件大小和校验和字段
在field_names.h中向Content和OcrText命名空间添加了文件大小字段
kFileSize以支持基于文件大小的搜索。
向OcrText命名空间专门添加了校验和字段
kCheckSum用于OCR处理文件的完整性验证。
这些改动实现了:
Influence: