Package: python-xapian Version: 1.4.1-1 Severity: normal The QueryParser apparently has three overloaded .add_boolean_prefix() methods. The first, listed here:
https://xapian.org/docs/apidoc/html/classXapian_1_1QueryParser.html#a8590431c481fe0eea43cd4ce619a0816 says that the grouping should be specified as an empty string. However, specifying the empty string results in the following exception: servo:~ $ python -c "import xapian; qp = xapian.QueryParser(); qp.add_boolean_prefix('tag', 'K', '')" Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib/python2.7/dist-packages/xapian/__init__.py", line 10485, in _queryparser_add_boolean_prefix return __queryparser_add_boolean_prefix_orig(self, s, proc, exclusive) TypeError: in method 'QueryParser_add_boolean_prefix', argument 4 of type 'std::string const *' servo:~ 1$ The second version seems to work fine though: servo:~ 0$ python -c "import xapian; qp = xapian.QueryParser(); qp.add_boolean_prefix('tag', 'K', False)" servo:~ 0$ Tried to report this issue upstream directly but I couldn't seem to register an account at trac.xapian.org. Thanks so much for maintaining such a useful package! jamie. -- System Information: Debian Release: stretch/sid APT prefers testing APT policy: (600, 'testing'), (500, 'stable'), (200, 'unstable'), (101, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.8.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages python-xapian depends on: ii libc6 2.24-8 ii libgcc1 1:6.2.1-5 ii libstdc++6 6.2.1-5 ii libxapian30 1.4.1-1 ii python 2.7.11-2 pn python:any <none> python-xapian recommends no packages. Versions of packages python-xapian suggests: ii xapian-doc 1.4.1-1 -- no debconf information