search for: as_wildcarded_query

Displaying 1 result from an estimated 1 matches for "as_wildcarded_query".

2008 Sep 16
0
[PATCH] Add set_max_wildcard_expansion method to the queryparser.
.../queryparser.lemony +++ b/xapian-core/queryparser/queryparser.lemony @@ -226,6 +226,10 @@ class State { Database get_database() const { return qpi->db; } + + long get_max_wildcard_expansion() { + return qpi->max_wildcard_expansion; + } }; string @@ -335,6 +339,8 @@ Term::as_wildcarded_query(State * state_) const Database db = state_->get_database(); vector<Query> subqs; list<string>::const_iterator piter; + long expansion_count = 0; + long max = state_->get_max_wildcard_expansion(); for (piter = prefixes.begin(); piter != prefixes.end(); ++p...