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

Don't index files starting with '~' #3336

Merged
merged 3 commits into from May 10, 2022
Merged

Conversation

labkey-ians
Copy link
Contributor

Rationale

Issue 45005: Exclude from search indexing any files that start with ~

Changes

  • Added check to indexer to ignore files starting with '~'

@@ -998,6 +998,10 @@ public boolean accept(WebdavResource r)
DocumentParser p = detectParser(r, null);
return p != null;
}
else if (isTempFile(r))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably move up with the isImage isZip checks, e.g. before we call getFileStream().

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

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.

None yet

2 participants