## Search (Deprecated)

Search (Deprecated) — Simple search functions.

## Synopsis

    #include <libtracker-client/tracker.h>

    void                (*TrackerReplyGPtrArray)            (GPtrArray *result,
                                                             GError *error,
                                                             gpointer user_data);
    guint               tracker_search_metadata_by_text_async
                                                            (TrackerClient *client,
                                                             const gchar *query,
                                                             TrackerReplyArray callback,
                                                             gpointer user_data);
    guint               tracker_search_metadata_by_text_and_location_async
                                                            (TrackerClient *client,
                                                             const gchar *query,
                                                             const gchar *location,
                                                             TrackerReplyArray callback,
                                                             gpointer user_data);
    guint               tracker_search_metadata_by_text_and_mime_async
                                                            (TrackerClient *client,
                                                             const gchar *query,
                                                             const gchar **mimes,
                                                             TrackerReplyArray callback,
                                                             gpointer user_data);
    guint               tracker_search_metadata_by_text_and_mime_and_location_async
                                                            (TrackerClient *client,
                                                             const gchar *query,
                                                             const gchar **mimes,
                                                             const gchar *location,
                                                             TrackerReplyArray callback,
                                                             gpointer user_data);

## Description

Simple search API.

## Details

### TrackerReplyGPtrArray ()

    void                (*TrackerReplyGPtrArray)            (GPtrArray *result,
                                                             GError *error,
                                                             gpointer user_data);

The returned GPtrArray contains an array of GStrv with the results from the query unless there is an error in the query. If there is an error the `error` is populated with the details.

`result` : |
`error` : |
`user_data` : |

### tracker_search_metadata_by_text_async ()

    guint               tracker_search_metadata_by_text_async
                                                            (TrackerClient *client,
                                                             const gchar *query,
                                                             TrackerReplyArray callback,
                                                             gpointer user_data);

`client` : |
`query` : |
`callback` : |
`user_data` : |
Returns : |

### tracker_search_metadata_by_text_and_location_async ()

    guint               tracker_search_metadata_by_text_and_location_async
                                                            (TrackerClient *client,
                                                             const gchar *query,
                                                             const gchar *location,
                                                             TrackerReplyArray callback,
                                                             gpointer user_data);

`client` : |
`query` : |
`location` : |
`callback` : |
`user_data` : |
Returns : |

### tracker_search_metadata_by_text_and_mime_async ()

    guint               tracker_search_metadata_by_text_and_mime_async
                                                            (TrackerClient *client,
                                                             const gchar *query,
                                                             const gchar **mimes,
                                                             TrackerReplyArray callback,
                                                             gpointer user_data);

`client` : |
`query` : |
`mimes` : |
`callback` : |
`user_data` : |
Returns : |

### tracker_search_metadata_by_text_and_mime_and_location_async ()

    guint               tracker_search_metadata_by_text_and_mime_and_location_async
                                                            (TrackerClient *client,
                                                             const gchar *query,
                                                             const gchar **mimes,
                                                             const gchar *location,
                                                             TrackerReplyArray callback,
                                                             gpointer user_data);

`client` : |
`query` : |
`mimes` : |
`location` : |
`callback` : |
`user_data` : |
Returns : |