A problem when using interfaces with regular expression

Discussion related to "Everything" 1.5.
Post Reply
bytim
Posts: 10
Joined: Sat Jul 20, 2024 12:22 pm

A problem when using interfaces with regular expression

Post by bytim »

Using the ed.exe from link: https://github.com/TheZoc/EverythingDopus
The result is 3483 folders + 147493 files.
DEBUG:

Code: Select all

ed.exe ===============================================
2025-07-31 07:47:00.923: IPC: execute query: \d{8}
2025-07-31 07:47:00.924: IPC: wait 2
2025-07-31 07:47:00.924: search '\d{8}' filter '' sort 0 ascending 1
2025-07-31 07:47:00.924: FOLDER TERM START 0000000012f5b928 M 0000000000cfeac0 N 0000000000cfe870
2025-07-31 07:47:00.924: 0000000012f5b928 20e01900 M 0000000000cfeac0 N 0000000000cfe870 OP 275 \d{8}
2025-07-31 07:47:00.924: FILE TERM START 0000000012f5b928 M 0000000000cfeac0 N 0000000000cfe870
2025-07-31 07:47:00.924: 0000000012f5b928 20e01900 M 0000000000cfeac0 N 0000000000cfe870 OP 275 \d{8}
2025-07-31 07:47:01.052: found 3483 folders with 4 threads in 0.128426 seconds
2025-07-31 07:47:01.087: update index C:
2025-07-31 07:47:01.087: USN DATA_EXTEND WaringClient.log
2025-07-31 07:47:01.087: USN CLOSE DATA_EXTEND WaringClient.log
2025-07-31 07:47:01.088: update index C:
2025-07-31 07:47:01.088: USN DATA_EXTEND WaringClient.log
2025-07-31 07:47:01.088: USN CLOSE DATA_EXTEND WaringClient.log
2025-07-31 07:47:01.177: update index C:
2025-07-31 07:47:01.177: USN DATA_EXTEND WaringClient.log
2025-07-31 07:47:01.177: USN CLOSE DATA_EXTEND WaringClient.log
2025-07-31 07:47:01.177: update index C:
2025-07-31 07:47:01.177: USN DATA_EXTEND WaringClient.log
2025-07-31 07:47:01.177: update index C:
2025-07-31 07:47:01.177: USN CLOSE DATA_EXTEND WaringClient.log
2025-07-31 07:47:01.178: update index C:
2025-07-31 07:47:01.178: USN DATA_EXTEND WaringClient.log
2025-07-31 07:47:01.178: USN CLOSE DATA_EXTEND WaringClient.log
2025-07-31 07:47:01.178: update index C:
2025-07-31 07:47:01.178: USN DATA_EXTEND WaringClient.log
2025-07-31 07:47:01.178: USN CLOSE DATA_EXTEND WaringClient.log
2025-07-31 07:47:01.614: update index C:
2025-07-31 07:47:01.614: USN CREATE e2s_subscription.lck
2025-07-31 07:47:01.614: USN CLOSE CREATE e2s_subscription.lck
2025-07-31 07:47:01.614: USN CLOSE DELETE e2s_subscription.lck
2025-07-31 07:47:01.615: update index C:
2025-07-31 07:47:01.615: USN CREATE SS_PRODINFO.lck
2025-07-31 07:47:01.615: update index C:
2025-07-31 07:47:01.615: USN CLOSE CREATE SS_PRODINFO.lck
2025-07-31 07:47:01.615: update index C:
2025-07-31 07:47:01.615: USN CLOSE DELETE SS_PRODINFO.lck
2025-07-31 07:47:01.616: update index C:
2025-07-31 07:47:01.616: USN CREATE SS_PRODINFO.lck
2025-07-31 07:47:01.616: update index C:
2025-07-31 07:47:01.616: USN CLOSE CREATE SS_PRODINFO.lck
2025-07-31 07:47:01.616: get fd: not inuse
2025-07-31 07:47:01.616: update index C:
2025-07-31 07:47:01.616: USN CLOSE DELETE SS_PRODINFO.lck
2025-07-31 07:47:01.618: update index C:
2025-07-31 07:47:01.618: USN CREATE SS_SETTINGS.lck
2025-07-31 07:47:01.618: update index C:
2025-07-31 07:47:01.618: USN CLOSE CREATE SS_SETTINGS.lck
2025-07-31 07:47:01.618: update index C:
2025-07-31 07:47:01.618: USN CLOSE DELETE SS_SETTINGS.lck
2025-07-31 07:47:02.070: found 147493 files with 4 threads in 1.018345 seconds
2025-07-31 07:47:02.070: SET SORT 0
2025-07-31 07:47:02.070: set sort 0 ascending 1 is valid 1 case 0
2025-07-31 07:47:02.070: already sorted
2025-07-31 07:47:02.070: finished sort, time taken 0.000062 seconds
2025-07-31 07:47:02.070: updated selection in 0.000000 seconds
2025-07-31 07:47:02.070: ready
USing EverythingInterface object in Directory Opus,
The result is 0.
DEBUG:

Code: Select all

2025-07-31 07:45:36.485: IPC: execute query: \d{8}
2025-07-31 07:45:36.485: IPC: wait 2
2025-07-31 07:45:36.485: search '\d{8}' filter '' sort 0 ascending 1
2025-07-31 07:45:36.485: FOLDER TERM START 0000000012f5c6e8 M 0000000000cfeac0 N 0000000000cfe870
2025-07-31 07:45:36.485: 0000000012f5c6e8 20e01900 M 0000000000cfeac0 N 0000000000cfe870 OP 275 \d{8}
2025-07-31 07:45:36.485: FILE TERM START 0000000012f5c6e8 M 0000000000cfeac0 N 0000000000cfe870
2025-07-31 07:45:36.485: 0000000012f5c6e8 20e01900 M 0000000000cfeac0 N 0000000000cfe870 OP 275 \d{8}
2025-07-31 07:45:36.583: found 3483 folders with 4 threads in 0.098006 seconds
2025-07-31 07:45:36.632: update index C:
2025-07-31 07:45:36.632: USN CREATE SS_PRODINFO.lck
2025-07-31 07:45:36.632: USN CLOSE CREATE SS_PRODINFO.lck
2025-07-31 07:45:36.632: USN CLOSE DELETE SS_PRODINFO.lck
2025-07-31 07:45:36.632: USN CREATE SS_PRODINFO.lck
2025-07-31 07:45:36.632: update index C:
2025-07-31 07:45:36.632: USN CLOSE CREATE SS_PRODINFO.lck
2025-07-31 07:45:36.632: update index C:
2025-07-31 07:45:36.632: USN CLOSE DELETE SS_PRODINFO.lck
2025-07-31 07:45:36.633: update index C:
2025-07-31 07:45:36.633: USN CREATE SS_SETTINGS.lck
2025-07-31 07:45:36.633: update index C:
2025-07-31 07:45:36.633: USN CLOSE CREATE SS_SETTINGS.lck
2025-07-31 07:45:36.635: update index C:
2025-07-31 07:45:36.635: USN CLOSE DELETE SS_SETTINGS.lck
2025-07-31 07:45:37.523: IPC: watch awake
2025-07-31 07:45:37.523: IPC: Client disconnected.
2025-07-31 07:45:37.523: DB_WAIT: db_query_destroy waiting for _db_search_thread_proc...
2025-07-31 07:45:37.523: found 0 files with 4 threads in 0.939728 seconds
2025-07-31 07:45:37.523: SET SORT 0
2025-07-31 07:45:37.523: search cancelled
2025-07-31 07:45:37.523: updated selection in 0.000000 seconds
2025-07-31 07:45:37.523: DB_WAIT: db_query_destroy waited 0.000200 seconds
2025-07-31 07:45:37.523: ready
the search pattern is the same, So I don't know why.
bytim
Posts: 10
Joined: Sat Jul 20, 2024 12:22 pm

Re: A problem when using interfaces with regular expression

Post by bytim »

ed.exe search result:8404 folders + 339173 files

Code: Select all

2025-07-31 08:40:11.282: IPC: execute query: \d{6}
2025-07-31 08:40:11.282: IPC: wait 2
2025-07-31 08:40:11.282: search '\d{6}' filter '' sort 0 ascending 1
2025-07-31 08:40:11.282: FOLDER TERM START 0000000012f5ba68 M 0000000000cfeac0 N 0000000000cfe870
2025-07-31 08:40:11.282: 0000000012f5ba68 20e01900 M 0000000000cfeac0 N 0000000000cfe870 OP 275 \d{6}
2025-07-31 08:40:11.282: FILE TERM START 0000000012f5ba68 M 0000000000cfeac0 N 0000000000cfe870
2025-07-31 08:40:11.282: 0000000012f5ba68 20e01900 M 0000000000cfeac0 N 0000000000cfe870 OP 275 \d{6}
2025-07-31 08:40:11.428: found 8404 folders with 4 threads in 0.145711 seconds
2025-07-31 08:40:11.975: update index C:
2025-07-31 08:40:11.975: USN CREATE SS_PRODINFO.lck
2025-07-31 08:40:11.976: update index C:
2025-07-31 08:40:11.977: USN CLOSE CREATE SS_PRODINFO.lck
2025-07-31 08:40:11.977: USN CLOSE DELETE SS_PRODINFO.lck
2025-07-31 08:40:11.978: update index C:
2025-07-31 08:40:11.978: USN CREATE SS_PRODINFO.lck
2025-07-31 08:40:11.979: update index C:
2025-07-31 08:40:11.979: USN CLOSE CREATE SS_PRODINFO.lck
2025-07-31 08:40:11.979: USN CLOSE DELETE SS_PRODINFO.lck
2025-07-31 08:40:11.979: update index C:
2025-07-31 08:40:11.979: USN CREATE SS_SETTINGS.lck
2025-07-31 08:40:11.980: update index C:
2025-07-31 08:40:11.980: USN CLOSE CREATE SS_SETTINGS.lck
2025-07-31 08:40:11.980: USN CLOSE DELETE SS_SETTINGS.lck
2025-07-31 08:40:12.398: found 339173 files with 4 threads in 0.969734 seconds
2025-07-31 08:40:12.398: SET SORT 0
2025-07-31 08:40:12.398: set sort 0 ascending 1 is valid 1 case 0
2025-07-31 08:40:12.398: already sorted
2025-07-31 08:40:12.398: finished sort, time taken 0.000051 seconds
2025-07-31 08:40:12.398: updated selection in 0.000000 seconds
2025-07-31 08:40:12.398: update index C:
2025-07-31 08:40:12.398: ready
DOpus EverythingInterface result: 8404 folders + 0 files

Code: Select all

2025-07-31 08:41:09.103: IPC: execute query: \d{6}
2025-07-31 08:41:09.103: IPC: wait 2
2025-07-31 08:41:09.103: search '\d{6}' filter '' sort 0 ascending 1
2025-07-31 08:41:09.103: FOLDER TERM START 0000000012f5aca8 M 0000000000cfeac0 N 0000000000cfe870
2025-07-31 08:41:09.103: 0000000012f5aca8 20e01900 M 0000000000cfeac0 N 0000000000cfe870 OP 275 \d{6}
2025-07-31 08:41:09.103: FILE TERM START 0000000012f5aca8 M 0000000000cfeac0 N 0000000000cfe870
2025-07-31 08:41:09.103: 0000000012f5aca8 20e01900 M 0000000000cfeac0 N 0000000000cfe870 OP 275 \d{6}
2025-07-31 08:41:09.206: found 8404 folders with 4 threads in 0.101762 seconds
2025-07-31 08:41:09.749: update index C:
2025-07-31 08:41:09.749: USN CREATE SS_PRODINFO.lck
2025-07-31 08:41:09.750: update index C:
2025-07-31 08:41:09.750: USN CLOSE CREATE SS_PRODINFO.lck
2025-07-31 08:41:09.750: USN CLOSE DELETE SS_PRODINFO.lck
2025-07-31 08:41:09.750: update index C:
2025-07-31 08:41:09.750: USN CREATE SS_PRODINFO.lck
2025-07-31 08:41:09.752: update index C:
2025-07-31 08:41:09.752: USN CLOSE CREATE SS_PRODINFO.lck
2025-07-31 08:41:09.752: update index C:
2025-07-31 08:41:09.752: USN CLOSE DELETE SS_PRODINFO.lck
2025-07-31 08:41:09.752: update index C:
2025-07-31 08:41:09.752: USN CREATE SS_SETTINGS.lck
2025-07-31 08:41:09.753: update index C:
2025-07-31 08:41:09.753: USN CLOSE CREATE SS_SETTINGS.lck
2025-07-31 08:41:09.753: update index C:
2025-07-31 08:41:09.753: USN CLOSE DELETE SS_SETTINGS.lck
2025-07-31 08:41:10.139: IPC: watch awake
2025-07-31 08:41:10.139: IPC: Client disconnected.
2025-07-31 08:41:10.139: DB_WAIT: db_query_destroy waiting for _db_search_thread_proc...
2025-07-31 08:41:10.139: found 0 files with 4 threads in 0.933311 seconds
2025-07-31 08:41:10.139: SET SORT 0
2025-07-31 08:41:10.139: search cancelled
2025-07-31 08:41:10.139: updated selection in 0.000000 seconds
2025-07-31 08:41:10.139: DB_WAIT: db_query_destroy waited 0.000353 seconds
2025-07-31 08:41:10.139: ready
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: A problem when using interfaces with regular expression

Post by void »

2025-07-31 07:45:37.523: search cancelled
Looks like DOpus is cancelling the search if it takes longer than 1 second.
Can this timeout be adjusted in DOpus?
bytim
Posts: 10
Joined: Sat Jul 20, 2024 12:22 pm

Re: A problem when using interfaces with regular expression

Post by bytim »

void wrote: Thu Jul 31, 2025 2:27 am
2025-07-31 07:45:37.523: search cancelled
Looks like DOpus is cancelling the search if it takes longer than 1 second.
Can this timeout be adjusted in DOpus?
Thank you!
That's the reason!
DOpus can set the timeout second:
EverythingInterface.Query('regex:\d{15}',"","f",14, 10, 0, 3000);
Post Reply