search for: expansion_count

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

2008 Sep 16
0
[PATCH] Add set_max_wildcard_expansion method to the queryparser.
...ong 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(); ++piter) { string root = *piter; root += name; @@ -342,6 +348,9 @@ Term::as_wildcarded_query(State * state_) const while (t != db.allterms_end(root)) { subqs.push_b...