search for: set_max_wildcard_expansion

Displaying 3 results from an estimated 3 matches for "set_max_wildcard_expansion".

2008 Sep 16
0
[PATCH] Add set_max_wildcard_expansion method to the queryparser.
...t a/search-xapian/XS/QueryParser.xs b/search-xapian/XS/QueryParser.xs index 3bec548..78edaaa 100644 --- a/search-xapian/XS/QueryParser.xs +++ b/search-xapian/XS/QueryParser.xs @@ -49,6 +49,12 @@ QueryParser::set_database(database) CODE: THIS->set_database(*database); +void +QueryParser::set_max_wildcard_expansion(max) + long max + CODE: + THIS->set_max_wildcard_expansion(max); + Query * QueryParser::parse_query(q, flags = 7) string q diff --git a/search-xapian/Xapian/QueryParser.pm b/search-xapian/Xapian/QueryParser.pm index f48a12e..3778be3 100644 --- a/search-xapian/Xapian/QueryParser.pm +...
2020 Nov 16
4
set_max_expansion in perl-bindings?
Hi, I've just noticed that set_max_wildcard_expansion() has been removed in favour of set_max_expansion() in Xapian. Has the new method been added to the Perl-bindings? We have some old Perl code that uses set_max_wildcard_expansion(), and I have a test of too large expansion that now returns "something terrible happened" instead of"E...
2018 Jul 19
1
choosing between probabilistic and boolean prefixes for terms
...my ($self) = @_; my $qp = $self->{query_parser}; return $qp if $qp; # new parser $qp = Search::Xapian::QueryParser->new; $qp->set_default_op(OP_AND); $qp->set_database($self->{xdb}); $qp->set_stemmer($self->stemmer); $qp->set_stemming_strategy(STEM_SOME); $qp->set_max_wildcard_expansion(100); $qp->add_valuerangeprocessor( Search::Xapian::NumberValueRangeProcessor->new(YYYYMMDD, 'd:')); $qp->add_valuerangeprocessor( Search::Xapian::NumberValueRangeProcessor->new(DT, 'dt:')); In any case, all the code is available via: git clone https://public-in...