Top | ![]() |
![]() |
![]() |
![]() |
BeagleQueryPartWildcard *
beagle_query_part_wildcard_new (void
);
Creates a new BeagleQueryPartWildcard.
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.