Skip to content
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

Merged
merged 6 commits into from
Dec 2, 2024
Merged

Conversation

Johnson-zs
Copy link
Contributor

No description provided.

- 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
Copy link

github-actions bot commented Dec 1, 2024

  • 检测到敏感词export变动
详情
    {
    "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:
Copy link

github-actions bot commented Dec 1, 2024

  • 检测到敏感词export变动
详情
    {
    "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:
Copy link

github-actions bot commented Dec 1, 2024

  • 检测到敏感词export变动
详情
    {
    "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:
Copy link

github-actions bot commented Dec 1, 2024

  • 检测到敏感词export变动
详情
    {
    "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-ci-robot
Copy link

deepin pr auto review

###PATH:./deepin-file-manager-backend-master/src/services/textindex/textindexservice.cpp
// SPDX-FileCopyrightText: 2022 - 2023 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: GPL-3.0-or-later

#include "textindexservice.h"

#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include

@deepin-ci-robot
Copy link

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@Johnson-zs
Copy link
Contributor Author

/forcemerge

@deepin-bot
Copy link
Contributor

deepin-bot bot commented Dec 2, 2024

This pr force merged! (status: blocked)

@deepin-bot deepin-bot bot merged commit 7a58c1a into linuxdeepin:master Dec 2, 2024
17 of 20 checks passed
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.

3 participants