Create files with FILE_ATTRIBUTE_NOT_CONTENT_INDEXED Might avoid problems with the Windows Search Service, although my earlier testing suggests that the only reliable solution is to exclude the folder via Indexing Options in Control Panel.
Project: http://git-wip-us.apache.org/repos/asf/lucy/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/7a64a288 Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/7a64a288 Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/7a64a288 Branch: refs/heads/master Commit: 7a64a288c36f7d3e3b30fd0f0605d7570e0c5a5a Parents: 54d5093 Author: Nick Wellnhofer <wellnho...@aevum.de> Authored: Sun Mar 5 16:31:36 2017 +0100 Committer: Nick Wellnhofer <wellnho...@aevum.de> Committed: Sun Mar 5 16:36:49 2017 +0100 ---------------------------------------------------------------------- core/Lucy/Store/FSFileHandle.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucy/blob/7a64a288/core/Lucy/Store/FSFileHandle.c ---------------------------------------------------------------------- diff --git a/core/Lucy/Store/FSFileHandle.c b/core/Lucy/Store/FSFileHandle.c index 12769ec..f1536d1 100644 --- a/core/Lucy/Store/FSFileHandle.c +++ b/core/Lucy/Store/FSFileHandle.c @@ -399,7 +399,8 @@ S_init(FSFileHandleIVARS *ivars, String *path, uint32_t flags) { char *path_ptr = Str_To_Utf8(path); HANDLE handle = CreateFileA(path_ptr, desired_access, share_mode, NULL, - creation_disposition, FILE_ATTRIBUTE_NORMAL, NULL); + creation_disposition, FILE_ATTRIBUTE_NOT_CONTENT_INDEXED, + NULL); FREEMEM(path_ptr); if (handle == INVALID_HANDLE_VALUE) {