Re: [Tracker] tracker-needle/tracker-search questions



On 12/02/15 15:42, Peter Reilly wrote:

Is there a way to change the limit in tracker-needle like you can in
tracker-search?

Only programatically, the limits are defined here:

https://git.gnome.org/browse/tracker/tree/src/tracker-needle/tracker-needle.vala#n59

Is there a way to specify the application type in tracker-needle like
you can in tracker-search (example: documents via -t)?

In the primary/initial view, each file type is shown in a separate category, but you can't JUST limit it to one category right now.

In either tracker-search or tracker-needle is there a way to limit the
search scope to a specific file extension, or path?  (I'm not asking how
to limit the indexing scope).

Yes.

In tracker-search:
File extension is more accurately done with nie:mimeType because unlike extensions, implementations detecting file mime types can use binary blobs and other mechanisms to detect the actual content type.

You could also use a regular expression on nfo:fileName. Paths can be filtered or queried using nie:url too. There are other functions available here too:

  https://wiki.gnome.org/Projects/Tracker/Documentation/SparqlFeatures

In tracker-needle:
Extension searching may work using '*.txt', I'm not sure.
Path searching is possible using the second icon from the left.

--
Regards,
Martyn

Founder & Director @ Lanedo GmbH.
http://www.linkedin.com/in/martynrussell


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]