-
Notifications
You must be signed in to change notification settings - Fork 175
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
移除anything&全文搜索优化 #2446
移除anything&全文搜索优化 #2446
Conversation
- Remove anything service from services directory - Remove anything service DBus configuration - Remove anything service systemd unit files - Remove kernel module loading/unloading logic - Clean up CMake build configuration This change removes the deprecated anything service as it has been migrated to a standalone package (deepin-anything). Log: remove anything
- Add RemoveIndexTask method in DBus interface to support batch removing invalid index - Refactor fulltext searcher to collect invalid index paths and remove them in batch - Add Remove task type and handler in text index service - Remove deprecated index operation functions in fulltext searcher - Add hasRunningTask check to avoid concurrent operations This change improves the efficiency of invalid index cleanup by handling them in batch instead of one by one. Log: add batch remove invalid index feature
- Add GetLastUpdateTime dbus interface to get last index update time - Move getLastUpdateTime logic from UI to service side - Add error handling for GetLastUpdateTime call - Optimize index task event handling in UI Log: add GetLastUpdateTime interface for text index service
Warning
详情 {
"export": {
"src/services/anything/anythingserver.cpp": {
"a": [
" fmInfo() << \"found export func 'fireAnything' and load anything backend OK!!\";",
" fmWarning() << \"Did not find export func 'fireAnything', please check deepin-anything-server lib version(>=6.0.1)\";",
" fmInfo() << \"found export func 'downAnything'\";"
]
}
}
} |
…ctories - Add special handling for root ("/") and home directory searches - Skip waiting for index updates when searching in root or home directories - Only wait for index creation when index doesn't exist - Keep original wait-for-update behavior for other directories This improves search response time for large directories while maintaining search accuracy. Log:
Warning
详情 {
"export": {
"src/services/anything/anythingserver.cpp": {
"a": [
" fmInfo() << \"found export func 'fireAnything' and load anything backend OK!!\";",
" fmWarning() << \"Did not find export func 'fireAnything', please check deepin-anything-server lib version(>=6.0.1)\";",
" fmInfo() << \"found export func 'downAnything'\";"
]
}
}
} |
- Remove unnecessary index writer in full text searcher - Add auto rebuild mechanism when index update fails - Add clearIndexDirectory method to clean corrupted index files Log:
Warning
详情 {
"export": {
"src/services/anything/anythingserver.cpp": {
"a": [
" fmInfo() << \"found export func 'fireAnything' and load anything backend OK!!\";",
" fmWarning() << \"Did not find export func 'fireAnything', please check deepin-anything-server lib version(>=6.0.1)\";",
" fmInfo() << \"found export func 'downAnything'\";"
]
}
}
} |
1. Add indexCorrupted flag to track index corruption state 2. Throw LuceneException in UpdateIndexHandler when index is corrupted 3. Add auto rebuild mechanism in TaskManager when index corruption detected 4. Add isIndexCorrupted() and setIndexCorrupted() methods to IndexTask 5. Improve error handling and logging messages Log:
Warning
详情 {
"export": {
"src/services/anything/anythingserver.cpp": {
"a": [
" fmInfo() << \"found export func 'fireAnything' and load anything backend OK!!\";",
" fmWarning() << \"Did not find export func 'fireAnything', please check deepin-anything-server lib version(>=6.0.1)\";",
" fmInfo() << \"found export func 'downAnything'\";"
]
}
}
} |
deepin pr auto review###PATH:./deepin-file-manager-backend-master/src/services/textindex/textindexservice.cpp #include "textindexservice.h" #include |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Johnson-zs, max-lvs The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/forcemerge |
This pr force merged! (status: blocked) |
No description provided.