Indexed Property, update criteria?

Discussion related to "Everything" 1.5 Alpha.
Post Reply
therube
Posts: 5056
Joined: Thu Sep 03, 2009 6:48 pm

Indexed Property, update criteria?

Post by therube »

Indexed Property, update criteria?


what is the criteria used to determine when an indexed Property is updated?
say you indexed sha1, what would cause the index to update the sha1 value
for any particular file?

i'll assume something like when Index Journal notes a change in... size,
obviously, date, but not size, or ... ?

suppose there was no Index Journal or date or size change - yet the file
"did" change, say bitrot (or failing drive...) - that would not be detected
& would not update any sha1 value.

so .db has 1 value & if you were to compute the value of said file, & if
you then compared (newly) computed against stored .db, they would not
match - but... you'd never know, cause one is not going to do that...
void
Developer
Posts: 17149
Joined: Fri Oct 16, 2009 11:31 pm

Re: Indexed Property, update criteria?

Post by void »

what is the criteria used to determine when an indexed Property is updated?
The following events will cause properties to be gathered (or re-gathered):

The file is created.
The file is renamed.
Data was overwritten.
Data was extended.
Data was truncated.
Alternate data stream was overwritten.
Alternate data stream was extended.
Alternate data stream was truncated.
Extended attributes changed.
Security changed.
Indexable status changed.
Basic file information changed. (attributes)
Hard link changed.
NTFS Compression changed
NTFS Encryption changed.
Object ID changed. (shortcut tracking)
Reparse Point changed.
Stream Changed.
(you can filter the above events with usn_record_filter)

The file was selected and Ctrl + F5 was pressed.

The volume was reindexed.


i'll assume something like when Index Journal notes a change in... size,
obviously, date, but not size, or ... ?
Everything regathers properties on any change event.
Everything ignores the size / date modified.
Size changes isn't enough, A change could be made where the size remains the same.
Typically, Date modified is reliable to detect changes, but it can be changed by programs.


suppose there was no Index Journal or date or size change - yet the file
"did" change, say bitrot (or failing drive...) - that would not be detected
& would not update any sha1 value.
Correct.


so .db has 1 value & if you were to compute the value of said file, & if
you then compared (newly) computed against stored .db, they would not
match - but... you'd never know, cause one is not going to do that...
I recommend sha256 sidecar files.
-or-
Backup your .db and compare property values.

Old db files can be opened from Everything -> File -> Open File List...
Post Reply