Ellerhold / fs2es-indexer

This tool indexes your directories into an elastic search index and prepares them for searching via Mac OS Spotlight search in a samba file server.
44 stars 3 forks source link

No file sizes and wrong change dates #20

Closed chico11mbit closed 2 years ago

chico11mbit commented 2 years ago

Hallo, the search works. But there are a few problems. I don't know if it's the indexer or samba. The search result in MacOS Finder shows a wrong modification date for each result. e.g. the correct date is 02.04.2004, but it shows 18.11.2006. 17.05.2022 becomes 26.09.2026.

Unfortunately, no file sizes or file types are displayed.

Samba version is 4.13.13-debian

MatthiasKuehneEllerhold commented 2 years ago

The return of file sizes & types are not supported in Samba atm (even 4.16). I think the same goes for the modification date, but it should be displayed as "-". I dont know where the wrong dates are coming from. Do you have a screenshot oder something?

chico11mbit commented 2 years ago

Screenshots. One with search result and the other with normal finder view. Screenshot

MatthiasKuehneEllerhold commented 2 years ago

Im seeing the same error now.

fs2es-indexer does not save the change date of the files. IDK where the finder gets them from. This is 99% a samba bug!

MatthiasKuehneEllerhold commented 2 years ago

See https://gitlab.com/samba-team/samba/-/blob/master/source3/rpc_server/mdssvc/mdssvc_es.c#L798 for the parsing of the ES-query results. Only path.real is used from the result from ES. IDK if samba enriches it later with the change date?