| Top |
This object defines a search run in the Appstream components database. It contains a string to search for, as well as information which categories should be searched. It also applies some sanity checks and improvements to the entered search string.
See also: AsDatabase
AsSearchQuery *
as_search_query_new (const gchar *term);
Creates a new AsSearchQuery.
AsSearchQuery * as_search_query_construct (GType object_type,const gchar *term);
Construct a new AsSearchQuery.
void as_search_query_set_search_term (AsSearchQuery *self,const gchar *value);
Set the search-term we use for the search. Multiple terms may be comma-separated. You can use Xapian prefixes, such as "XP" to refine your search.
gboolean
as_search_query_get_search_all_categories
(AsSearchQuery *self);
void
as_search_query_set_search_all_categories
(AsSearchQuery *self);
Shortcut to set that we should search in all categories
void as_search_query_set_categories (AsSearchQuery *self,gchar **value);
void as_search_query_set_categories_from_string (AsSearchQuery *self,const gchar *categories_str);
Set the categories list from a string
categories_str
Semicolon-separated list of category-names
void
as_search_query_sanitize_search_term (AsSearchQuery *self);
const gchar *
as_search_query_get_search_term (AsSearchQuery *self);