Force update DB

Discussion related to "Everything" 1.5 Alpha.
Post Reply
Laus
Posts: 17
Joined: Sun Jul 04, 2021 11:44 am

Force update DB

Post by Laus »

Hi!

I sometimes need to change files on a windows share w/o changing any file dates [big sigh] My .py script can update up to 150 files per second and sometimes Everything won't notice all changes (It perfectly works if the dates get changed).

Does the Everything SDK offer to update the db record for a certain file or folder?

Thanks for reading, Laus
NotNull
Posts: 5468
Joined: Wed May 24, 2017 9:22 pm

Re: Force update DB

Post by NotNull »

Don't know if the SDK supports this, but there is an easier way.

Suppose you want to force an update of all entries in "X:\some folder\here" (including subfolders):
Type the following in the Everything search bar and press ENTER:

Code: Select all

/reindex "X:\some folder\here"

Can't test it atm, but I think the following will rescan *just* the "X:\some folder\here" folder without subfolders:
(don't forget to press ENTER)

Code: Select all

/reindex "X:\some folder\here\*"


/reindex search command
Laus
Posts: 17
Joined: Sun Jul 04, 2021 11:44 am

Re: Force update DB

Post by Laus »

Hi!

Thanks for the lead. However, while "\\host\share\folder" returns >642,000 items, '/reindex "\\host\share\folder"' returns 'index "\\host\share\folder" not found'. I guess I've got to do this on the host, not on the client? I'm running Everything Server on the host and use "network index" on the client. Also reindexing >500.000 items, to catch updates of several hundred items seem a big shot. The items to update are scattered all over the folder tree and I would prefer to do this with the SDK, I'm using it in the script already to find the files I need to update.


Thanks for reading, Laus
Post Reply