BeagleQueryPartWildcard

BeagleQueryPartWildcard

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── BeagleQueryPart
        ╰── BeagleQueryPartWildcard

Description

Functions

beagle_query_part_wildcard_new ()

BeagleQueryPartWildcard *
beagle_query_part_wildcard_new (void);

Creates a new BeagleQueryPartWildcard.

Returns

a newly created BeagleQueryPartWildcard.


beagle_query_part_wildcard_set_query_string ()

void
beagle_query_part_wildcard_set_query_string
                               (BeagleQueryPartWildcard *part,
                                const char *query_string);

Sets the wildcard string to search for in a BeagleQueryPartWildcard. The text should contain an asterisk (*) as the wildcard character, for matching zero or more items.

While wildcards in the middle or end of a term are fine, using wildcards at the beginning of a term is strongly discouraged, as it cannot be efficiently done inside Lucene, the Beagle text indexer. It will cause a very large Lucene query to be built and will be very slow and could possibly cause a TooManyClauses exception inside Lucene. Try to avoid them whenever possible.

Parameters

part

a BeagleQueryPartWildcard

 

query_string

a const char *

 

Types and Values

struct BeagleQueryPartWildcard

struct BeagleQueryPartWildcard;