Ticket #350: Add-set_max_wildcard_expansion-method-to-the-queryparser-perl-updated.patch

File Add-set_max_wildcard_expansion-method-to-the-queryparser-perl-updated.patch, 824 bytes (added by Olly Betts, 13 years ago)

perl parts of patch, tweaked slightly

  • Xapian/QueryParser.pm

     
    166166
    167167If there were no corrections, an empty string is returned.
    168168
     169=item set_max_wildcard_expansion <max>
     170
     171If the queryparser expands a wildcard to more than max terms, an
     172exception will be thrown.
     173
     174=cut
     175
    169176=back
    170177
    171178=head1 REFERENCE
  • XS/QueryParser.xs

     
    4949    CODE:
    5050        THIS->set_database(*database);
    5151
     52void
     53QueryParser::set_max_wildcard_expansion(termcount limit)
     54
    5255Query *
    5356QueryParser::parse_query(q, flags = QueryParser::FLAG_DEFAULT)
    5457    string q