Elasticsearch Exclude directories

Is there any way to exclude whole directories from being analysed by elasticsearch?

I a lot of big .pdf files in some one directory with several subdiectories. I want to exclude them from elasticsearch.

Has anyone any hint how to do this?

Thank you in advance

Rick

Put a file “.noindex” in a folder which shall be excluded.

1 Like