Re: [Tracker] tracker-miner signal "Finished"



On 07/02/12 13:29, Putinei Ionut wrote:
Hello,

Hello,

I was look at test come under directory /examples/libtracker-miner

and there is callback function that is executed on reception of signal
"Finished" with this signature
static void
miner_finished_cb (TrackerMiner *miner,
                    gdouble       seconds_elapsed,
                    guint         total_directories_found,
                    guint         total_directories_ignored,
                    guint         total_files_found,
                    guint         total_files_ignored,
                    gpointer      user_data)

I suppose the most parameters come from the signal "Finished".

Can someone please expalin to me what total_directories_found
and total_directories_ignored mean?

Found means, we crawled your directories and found (e.g.) 2000 directories. Ignored means, of those 2000 directories, we ignored (or didn't process/crawl/index) (e.g.) 100 due to ignore rules in the configuration.

Directories already indexed care counted as directories ignored?(Some
question about files).

"Found" doesn't represent "new", only what we processed to check if there are new or unchanged content.

If we have a equal number of total_directories_found
and total_directories_ignored and of total_files_found
and total_files_ignored does this mean that those folders and files were
already indexed?

It didn't. But, IIRC, it was changed more recently to mean that yes, "ignored" == "already index" || "matches ignore rules" || "..."

Hope this helps.

--
Regards,
Martyn

Founder and CEO of Lanedo GmbH.



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