Describe the bug
If there is subdirectory in indexed directory, I will get error:
00:12:11,913 WARN [f.p.e.c.f.FsParserAbstract] Error while crawling c:/Elastic/fscdocs: Range [0, -1) out of bounds for length 21
and no further files are indexed.
continue_on_error: true will not help.
index_folders: false will eliminate error.
I am using fscrawler on windows
It appears both on elasticsearch 8 and 9
fscrawler-distribution-2.10-20250305.083042-479.zip works ok
fscrawler-distribution-2.10-20250818.072527-86.zip generates error above
fscrawler-distribution-2.10-20250821.064644-87.zip generates error too
Job Settings
name: "Storage"
elasticsearch:
nodes:
- url: "http://127.0.0.1:9200"
semantic_search: "false"
ssl_verification: false
index: "Storage"
create_index: true
fs:
url: "c:/Elastic/fscdocs"
update_rate: "10s"
includes:
- "*"
excludes:
- "*/~*"
json_support: false
# filename_as_id: true
add_filesize: true
remove_deleted: true
index_content: true
# index_folders: false
continue_on_error: true
ocr:
enabled: true
language: "ces+eng"