Start a manual rescan on Everything Service without stopping the service

General discussion related to "Everything".
Post Reply
7824c5a4
Posts: 3
Joined: Tue Jun 15, 2021 5:34 pm

Start a manual rescan on Everything Service without stopping the service

Post by 7824c5a4 » Tue Jun 15, 2021 5:40 pm

Hello, I am trying to run Everything as a service on Windows Server for my users. I would like to do a full rescan of all the indexed files, but do not want to stop the service to open the GUI and start a new manual rescan since many are actively using it right now. Is there a way to interact with the already running service from the command line? I have attempted to run

Code: Select all

everything.exe -reindex
but it tries to launch a new instance. I believe I am misunderstanding the documentation on how to interact with the service. Can someone help me understand?

Thanks!

void
Site Admin
Posts: 7179
Joined: Fri Oct 16, 2009 11:31 pm

Re: Start a manual rescan on Everything Service without stopping the service

Post by void » Wed Jun 16, 2021 2:23 am

Please try the latest nightly build.

Version 1.4.1.1011 adds a -rescan-all command line option.

-reindex doesn't quite work as the HTTP server will cache empty results, forcing clients to reconnect or change the search parameters.

Create a new service with the following command from an command prompt running as an adminstrator:

Code: Select all

sc create "Everything Client Reindex" binpath= "\"C:\Program Files\Everything\Everything.exe\" -client-svc -rescan-all -no-first-instance" start= demand
Note: the space after binpath= and start= is important

Manually start this service when you want to rescan all your folder indexes.
The service will start and exit immediately after sending a command to the normal client service to rescan all indexes.

7824c5a4
Posts: 3
Joined: Tue Jun 15, 2021 5:34 pm

Re: Start a manual rescan on Everything Service without stopping the service

Post by 7824c5a4 » Wed Jun 23, 2021 3:04 pm

Thanks for the reply. So if I understand correctly, the client-service does not run scheduled rescans on its own and will require the additional reindex service be created? If that is the case, I will try 1.4.1.1011 with the method you described and set a Windows Task Scheduler job to auto start that service at the time I want the scan to happen.

void
Site Admin
Posts: 7179
Joined: Fri Oct 16, 2009 11:31 pm

Re: Start a manual rescan on Everything Service without stopping the service

Post by void » Thu Jun 24, 2021 7:00 am

The client service does run scheduled rescans (daily by default)

Consider scheduling a rescan more often:
  • Stop the Everything client service:
    Everything.exe -stop-client-service
  • Run Everything.exe
  • In Everything, from the Tools menu, click Options.
  • Click the Folders tab on the left.
  • For each folder:
    • Change to Rescan every 3 hours (adjust to your preferred update frequency).
  • Click OK.
  • Completely exit Everything (right click the Everything system tray icon and click Exit)
  • Restart the Everything client service:
    Everything.exe -start-client-service

7824c5a4
Posts: 3
Joined: Tue Jun 15, 2021 5:34 pm

Re: Start a manual rescan on Everything Service without stopping the service

Post by 7824c5a4 » Thu Jun 24, 2021 4:30 pm

Got it. I will adjust that frequency. My only concern is that we are indexing 3.5M files, and occasionally while indexing, the ETP server becomes unresponsive for several minutes while it searches some of the larger files on the network share that we are indexing. Im not sure I want that to happen during production hours, but I will try it for now and see how it handles.

Also, should the service always be restarted from the command line using the -stop/start-client-service, or is it safe to stop and start it via the Windows Services tool?

void
Site Admin
Posts: 7179
Joined: Fri Oct 16, 2009 11:31 pm

Re: Start a manual rescan on Everything Service without stopping the service

Post by void » Fri Jun 25, 2021 6:00 am

It is safe to start/stop the Everything Client Service from Administrative Tools -> Services -> Everything Client Service -> Start/Stop.

-start/stop-client-service issue the exact same commands.

Post Reply