# File Crawling on local \*.pdf files failed.

**URL:** <https://discuss.codelibs.org/t/file-crawling-on-local-pdf-files-failed/2397>\
**Category:** English:Fess\
**Created:** [May 3, 2024, 8:36am UTC](https://discuss.codelibs.org/t/file-crawling-on-local-pdf-files-failed/2397 "2024-05-03T08:36:31Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![CANdy](https://discuss.codelibs.org/user_avatar/discuss.codelibs.org/candy/32/717_2.png) [@CANdy](https://discuss.codelibs.org/u/CANdy)\
**Post date:** [May 3, 2024, 8:36am UTC](https://discuss.codelibs.org/t/file-crawling-on-local-pdf-files-failed/2397/1 "2024-05-03T08:36:31Z")

</div>

I use FESS to crawling local or smb shared files,say type .pdf but failed.  
File Crawling Configuration belows:  
Details  
ID sGWHM48BEQDFG8pcj9ZH  
Name A-shared  
Paths file:/var/lib/fess/  
Included Paths For Crawling ._.(pdf|doc|docx|xls|xlsx|ppt|pptx|txt)$  
Excluded Paths For Crawling   
Included Paths For Indexing ._?/var/lib/fess/._.pdf$  
._?/var/lib/fess/._.txt$  
._?/var/lib/fess/._.doc$  
._?/var/lib/fess/.\*.docx$  
Excluded Paths For Indexing   
Config Parameters   
Depth   
Max Access Count   
The number of Thread 5  
Interval time 1000 ms  
Boost 1.0  
Permissions {role}guest  
Virtual Hosts   
Status Enabled  
Description

and I start job in Job Scheduler but no result appears on the search front.

I check Crawling logs,

Crawling Information

Session ID 20240503083101  
Crawler start time 2024-05-03T08:31:06.605+0000  
Crawl start time (Web/File system) 2024-05-03T08:31:06.651+0000  
Crawl exec time (Web/File system) 31305  
Indexing exec time (Web/File system) 48  
Index size (Web/File system) 0  
Crawl end time (Web/File system) 2024-05-03T08:31:47.406+0000  
Crawler status true  
Crawler end time 2024-05-03T08:31:47.407+0000  
Crawler exec time 40802

and found Index size (Web/File system) is zero.  
I deploy FESS using docker-compose,say command  
"  
docker-compose --env-file .env.elasticsearch -f compose.yaml -f compose-elasticsearch8.yaml up -d  
"

My pdf files are written in Chinese.

Would you please help me out of such situation?

---

<div class="post-metadata">

**Author:** ![shinsuke](https://discuss.codelibs.org/user_avatar/discuss.codelibs.org/shinsuke/32/6_2.png) [@shinsuke](https://discuss.codelibs.org/u/shinsuke)\
**Post date:** [May 3, 2024, 12:22pm UTC](https://discuss.codelibs.org/t/file-crawling-on-local-pdf-files-failed/2397/2 "2024-05-03T12:22:09Z")

</div>

> Included Paths For Crawling ._.(pdf|doc|docx|xls|xlsx|ppt|pptx|txt)$_

This setting excludes directories from the crawling process: file:/var/lib/fess/.

---

<div class="post-metadata">

**Author:** ![CANdy](https://discuss.codelibs.org/user_avatar/discuss.codelibs.org/candy/32/717_2.png) [@CANdy](https://discuss.codelibs.org/u/CANdy)\
**Post date:** [May 3, 2024, 2:12pm UTC](https://discuss.codelibs.org/t/file-crawling-on-local-pdf-files-failed/2397/3 "2024-05-03T14:12:13Z")

</div>

Thank you Shinsuke Sensei.I am a greenhorn to Fess, and would you please tell me the correct way to crawle what I want?

---

<div class="post-metadata">

**Author:** ![CANdy](https://discuss.codelibs.org/user_avatar/discuss.codelibs.org/candy/32/717_2.png) [@CANdy](https://discuss.codelibs.org/u/CANdy)\
**Post date:** [May 3, 2024, 2:25pm UTC](https://discuss.codelibs.org/t/file-crawling-on-local-pdf-files-failed/2397/4 "2024-05-03T14:25:21Z")

</div>

Included Paths For Crawling

the parameter is

 ![屏幕截图 2024-05-03 170330](https://discuss.codelibs.org/uploads/default/original/1X/b1d8aa74b99d4889bb065dbde48052faf896d97c.png)

---

<div class="post-metadata">

**Author:** ![shinsuke](https://discuss.codelibs.org/user_avatar/discuss.codelibs.org/shinsuke/32/6_2.png) [@shinsuke](https://discuss.codelibs.org/u/shinsuke)\
**Post date:** [May 4, 2024, 10:27am UTC](https://discuss.codelibs.org/t/file-crawling-on-local-pdf-files-failed/2397/5 "2024-05-04T10:27:55Z")

</div>

A directory is a target path that the crawler scans. Therefore, you should add the directory to the `Included Paths For Crawling` . However, the file protocol cannot determine whether a path is a directory. Thus, you should use the SMB protocol and add `.*/` to the settings.

---

<div class="post-metadata">

**Author:** ![CANdy](https://discuss.codelibs.org/user_avatar/discuss.codelibs.org/candy/32/717_2.png) [@CANdy](https://discuss.codelibs.org/u/CANdy)\
**Post date:** [May 4, 2024, 4:49pm UTC](https://discuss.codelibs.org/t/file-crawling-on-local-pdf-files-failed/2397/6 "2024-05-04T16:49:22Z")

</div>

Many thanks to Shinsuke Sensei.  
I tried several settings to search my pdf files but failed. My settings like below.Would you please tell me the right way to search my pdf files?

 ![屏幕截图 2024-05-05 003458](https://discuss.codelibs.org/uploads/default/original/1X/80ef7f09ed22152dec9e5ad0798585eb609f3eee.png)

---

<div class="post-metadata">

**Author:** ![CANdy](https://discuss.codelibs.org/user_avatar/discuss.codelibs.org/candy/32/717_2.png) [@CANdy](https://discuss.codelibs.org/u/CANdy)\
**Post date:** [May 4, 2024, 4:50pm UTC](https://discuss.codelibs.org/t/file-crawling-on-local-pdf-files-failed/2397/7 "2024-05-04T16:50:13Z")

</div>

File Authentication  
smb protocal used.

 ![屏幕截图 2024-05-05 003522](https://discuss.codelibs.org/uploads/default/original/1X/56a10d0cea0bc7bccbe51133e0b22b5f5be32c8e.png)

---

<div class="post-metadata">

**Author:** ![CANdy](https://discuss.codelibs.org/user_avatar/discuss.codelibs.org/candy/32/717_2.png) [@CANdy](https://discuss.codelibs.org/u/CANdy)\
**Post date:** [May 4, 2024, 4:50pm UTC](https://discuss.codelibs.org/t/file-crawling-on-local-pdf-files-failed/2397/8 "2024-05-04T16:50:50Z")

</div>

Jobs like this.

 ![屏幕截图 2024-05-05 003556](https://discuss.codelibs.org/uploads/default/original/1X/3ef7ff126031ddd74663869114cdbc8ffe223f4e.png)

---

<div class="post-metadata">

**Author:** ![CANdy](https://discuss.codelibs.org/user_avatar/discuss.codelibs.org/candy/32/717_2.png) [@CANdy](https://discuss.codelibs.org/u/CANdy)\
**Post date:** [May 4, 2024, 4:52pm UTC](https://discuss.codelibs.org/t/file-crawling-on-local-pdf-files-failed/2397/9 "2024-05-04T16:52:31Z")

</div>

Crawling infomation,as you know,index failed.

 ![屏幕截图 2024-05-05 003619](https://discuss.codelibs.org/uploads/default/original/1X/74f66d5b0691cfb81d06e0db4d5a85feae2f8c76.png)

---

<div class="post-metadata">

**Author:** ![shinsuke](https://discuss.codelibs.org/user_avatar/discuss.codelibs.org/shinsuke/32/6_2.png) [@shinsuke](https://discuss.codelibs.org/u/shinsuke)\
**Post date:** [May 5, 2024, 4:51am UTC](https://discuss.codelibs.org/t/file-crawling-on-local-pdf-files-failed/2397/10 "2024-05-05T04:51:52Z")

</div>

File Crawling Config is:

```auto
Paths:
smb://shared:shared@10.168.1.100/shared/
Included Paths For Crawling:
.*/$
.*pdf$
Included Paths For Indexing:

```

---

<div class="post-metadata">

**Author:** ![CANdy](https://discuss.codelibs.org/user_avatar/discuss.codelibs.org/candy/32/717_2.png) [@CANdy](https://discuss.codelibs.org/u/CANdy)\
**Post date:** [May 5, 2024, 11:36am UTC](https://discuss.codelibs.org/t/file-crawling-on-local-pdf-files-failed/2397/11 "2024-05-05T11:36:13Z")

</div>

Shinsuke Sensei,I am really appreciated to your kindness.  
I set parameters following your instruction,however, I still got no search results from net shared file containning pdf files.  
I am confused about my settings and have no idea how to solve it.

---

<div class="post-metadata">

**Author:** ![shinsuke](https://discuss.codelibs.org/user_avatar/discuss.codelibs.org/shinsuke/32/6_2.png) [@shinsuke](https://discuss.codelibs.org/u/shinsuke)\
**Post date:** [May 5, 2024, 12:08pm UTC](https://discuss.codelibs.org/t/file-crawling-on-local-pdf-files-failed/2397/12 "2024-05-05T12:08:32Z")

</div>

Could you please check the fess-crawler.log? It should contain the logged paths that were crawled.

---

<div class="post-metadata">

**Author:** ![shinsuke](https://discuss.codelibs.org/user_avatar/discuss.codelibs.org/shinsuke/32/6_2.png) [@shinsuke](https://discuss.codelibs.org/u/shinsuke)\
**Post date:** [May 5, 2024, 12:16pm UTC](https://discuss.codelibs.org/t/file-crawling-on-local-pdf-files-failed/2397/13 "2024-05-05T12:16:10Z")

</div>

[This](https://discuss.codelibs.org/t/topic/2387) covers the same topic, but in Japanese. It wants to crawl XLS files.

---

<div class="post-metadata">

**Author:** ![CANdy](https://discuss.codelibs.org/user_avatar/discuss.codelibs.org/candy/32/717_2.png) [@CANdy](https://discuss.codelibs.org/u/CANdy)\
**Post date:** [May 5, 2024, 2:43pm UTC](https://discuss.codelibs.org/t/file-crawling-on-local-pdf-files-failed/2397/14 "2024-05-05T14:43:03Z")

</div>

Shinsuke Sensei，I am very glad to tell you I finally get the right search result.  
However,I have no idea about the reason.  
The most important thing is to thank you for you patient and kindness on helping me out.  
If Sensei explain the reason why it works or add them to document, I would more appreciated.

My setting belows:

 ![屏幕截图 2024-05-05 221708](https://discuss.codelibs.org/uploads/default/original/1X/f688afae51f4eced044a9a674c54144685ca1e4e.png)

---

<div class="post-metadata">

**Author:** ![CANdy](https://discuss.codelibs.org/user_avatar/discuss.codelibs.org/candy/32/717_2.png) [@CANdy](https://discuss.codelibs.org/u/CANdy)\
**Post date:** [May 5, 2024, 2:44pm UTC](https://discuss.codelibs.org/t/file-crawling-on-local-pdf-files-failed/2397/15 "2024-05-05T14:44:57Z")

</div>

![屏幕截图 2024-05-05 221748](https://discuss.codelibs.org/uploads/default/original/1X/d1d3844bfa47b5187e56431bb2ffcc85632232aa.png)  
File Crawling Configuration  
the difference is the paths: smb://ip/, I ignore the username and password.

---

<div class="post-metadata">

**Author:** ![CANdy](https://discuss.codelibs.org/user_avatar/discuss.codelibs.org/candy/32/717_2.png) [@CANdy](https://discuss.codelibs.org/u/CANdy)\
**Post date:** [May 5, 2024, 2:45pm UTC](https://discuss.codelibs.org/t/file-crawling-on-local-pdf-files-failed/2397/16 "2024-05-05T14:45:45Z")

</div>

![屏幕截图 2024-05-05 221804](https://discuss.codelibs.org/uploads/default/original/1X/74d7e4f1e6e83fc420c1c38d370bfe470e98ad5c.png)  
the Jobs,

I delete the old Job and create new one.

---

<div class="post-metadata">

**Author:** ![shinsuke](https://discuss.codelibs.org/user_avatar/discuss.codelibs.org/shinsuke/32/6_2.png) [@shinsuke](https://discuss.codelibs.org/u/shinsuke)\
**Post date:** [May 6, 2024, 4:43am UTC](https://discuss.codelibs.org/t/file-crawling-on-local-pdf-files-failed/2397/17 "2024-05-06T04:43:39Z")

</div>

Since I do not have enough information to reproduce the issue, I am not certain of the cause. If you encounter an unknown problem, it is better to check the log messages at the debug level. To change the log level, you can set `.logLevel("debug")` in the crawler job.
