Skip to content

avoid searching given project based on flag existence #1060

Closed
@vladak

Description

@vladak

Most of the projects receive minor changes when doing resync with the parent. Usually this is harmless to the search however when the changes delete some files it might result in imprecise search results or errors. The way around this is to reduce the time window when source code and index are inconsistent is to creatively use file-system level snapshots with 2 applications however this introduces additional complexity to the setup. Another, less powerful workaround would be to make the webapp recognize a per project flag in the form of a dot file placed under the project directory. If the flag is present, webapp searches will avoid index of this project (and display the fact above the search results). So, the mirroring/resyncing script can touch the script prior and remove it after the resync.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions