![]() |
![]() |
![]() |
Libbeagle Reference Manual | ![]() |
---|---|---|---|---|
enum BeagleQueryDomain; BeagleQuery; BeagleQuery* beagle_query_new (void); void beagle_query_add_part (BeagleQuery *query, BeagleQueryPart *part); void beagle_query_add_text (BeagleQuery *query, const char *str); void beagle_query_set_domain (BeagleQuery *query, BeagleQueryDomain domain); void beagle_query_add_domain (BeagleQuery *query, BeagleQueryDomain domain); void beagle_query_remove_domain (BeagleQuery *query, BeagleQueryDomain domain); void beagle_query_set_max_hits (BeagleQuery *query, int max_hits); int beagle_query_get_max_hits (BeagleQuery *query); GSList* beagle_query_get_exact_text (BeagleQuery *query); GSList* beagle_query_get_stemmed_text (BeagleQuery *query);
typedef enum { BEAGLE_QUERY_DOMAIN_LOCAL = 1, BEAGLE_QUERY_DOMAIN_SYSTEM = 2, BEAGLE_QUERY_DOMAIN_NEIGHBORHOOD = 4, BEAGLE_QUERY_DOMAIN_GLOBAL = 8 } BeagleQueryDomain;
BeagleQuery* beagle_query_new (void);
Creates a new BeagleQuery.
Returns : |
the newly created BeagleQuery. |
void beagle_query_add_part (BeagleQuery *query, BeagleQueryPart *part);
Adds a BeagleQueryPart to the given BeagleQuery.
|
a BeagleQuery |
|
a BeagleQueryPart |
void beagle_query_add_text (BeagleQuery *query, const char *str);
Adds a text part to the given BeagleQuery.
|
a BeagleQuery |
|
a string |
void beagle_query_set_domain (BeagleQuery *query, BeagleQueryDomain domain);
Sets the search domain for a given BeagleQuery. This limits the scope of a search to certain backends.
|
a BeagleQuery |
|
a BeagleQueryDomain |
void beagle_query_add_domain (BeagleQuery *query, BeagleQueryDomain domain);
Adds a search domain to the list of domains to search.
|
a BeagleQuery |
|
a BeagleQueryDomain |
void beagle_query_remove_domain (BeagleQuery *query, BeagleQueryDomain domain);
Removes a search domain.
|
a BeagleQuery |
|
a BeagleQueryDomain |
void beagle_query_set_max_hits (BeagleQuery *query, int max_hits);
Sets the max number of hits a given BeagleQuery should return.
|
a BeagleQuery |
|
Max number of hits |
int beagle_query_get_max_hits (BeagleQuery *query);
Returns the max number of hits a given BeagleQuery should return.
|
a BeagleQuery |
Returns : |
Max number of hits |
GSList* beagle_query_get_exact_text (BeagleQuery *query);
Returns a list of strings which contain the exact text processed by the query. The list should not be modified or freed.
|
a BeagleQuery |
Returns : |
A list of strings containing the exact text |
GSList* beagle_query_get_stemmed_text (BeagleQuery *query);
Returns a list of strings which contain the stemmed text processed by the query. The list should not be modified or freed.
|
a BeagleQuery |
Returns : |
A list of strings containing the stemmed text |
void user_function (BeagleQuery *beaglequery, BeagleFinishedResponse *arg1, gpointer user_data) : Run Last
|
the object which received the signal. |
|
|
|
user data set when the signal handler was connected. |
void user_function (BeagleQuery *beaglequery, BeagleHitsAddedResponse *arg1, gpointer user_data) : Run Last
|
the object which received the signal. |
|
|
|
user data set when the signal handler was connected. |
void user_function (BeagleQuery *beaglequery, BeagleHitsSubtractedResponse *arg1, gpointer user_data) : Run Last
|
the object which received the signal. |
|
|
|
user data set when the signal handler was connected. |