Bug 13468 - Feature-Request: Add the details of the file returned by spotlight.
Summary: Feature-Request: Add the details of the file returned by spotlight.
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Other (show other bugs)
Version: 4.7.0
Hardware: All Linux
: P3 normal (vote)
Target Milestone: 4.7
Assignee: Andrew Bartlett
QA Contact: Samba QA Contact
Depends on:
Reported: 2018-06-11 02:40 UTC by AtlantisCD9
Modified: 2018-06-11 04:41 UTC (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description AtlantisCD9 2018-06-11 02:40:08 UTC
I am a system backend developer and use Tracker as an engine for file search, including adding Spotlight support to samba.

Now, our customers feedback a feature request that they want to have detailed information on the spotlight search results, such as Date Modified, Size and etc.

I checked the source code of samba:

slq->sparql_query = talloc_asprintf(slq,
		"SELECT ?url WHERE { %s . ?obj nie:url ?url . "
		"FILTER(tracker:uri-is-descendant('file://%s/', ?url)) }",
		s.result, slq->path_scope);

`SELECT ?url WHERE ` is the same as AFP's SPARQL statement.

I found that the query could only get the path of the file without with the file details.

Could you please add this feature to let spotlight return the details of the file?