Ticket #158 (assigned defect)
Query::MatchNothing and Query::MatchAll aren't wrapped
| Reported by: | richard | Owned by: | olly |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.1.0 |
| Component: | Xapian-bindings | Version: | SVN trunk |
| Severity: | normal | Keywords: | |
| Cc: | Blocked By: | ||
| Operating System: | All | Blocking: |
Description (last modified by richard) (diff)
The obvious patch for this (below) doesn't work - in Python, you get a property of xapian.Query() added, which means that you have to instantiate xapian.Query to get at MatchNothing? (ie, xapian.Query().MatchNothing? works, but xapian.Query.MatchNothing? doesn't). It should be easy enough to fix this with a python specific workaround though.
PHP also doesn't work; I can't seem to access the resulting function at all, but this may be more due to my lack of PHP knowledge.
I've not tested for other languages yet.
Index: xapian.i =================================================================== --- xapian.i (revision 8676) +++ xapian.i (working copy) @@ -871,6 +871,9 @@
~Query();
+ static Xapian::Query MatchAll?; + static Xapian::Query MatchNothing?; +
termcount get_length() const; TermIterator? get_terms_begin() const; TermIterator? get_terms_end() const;
