Ticket #201 (assigned enhancement)

Opened 16 months ago

Last modified 3 weeks ago

NEAR search with two OR subqueries should be supported

Reported by: richard Owned by: olly
Priority: normal Milestone: 1.1.1
Component: Library API Version: SVN trunk
Severity: normal Keywords:
Cc: Blocked By:
Operating System: All Blocking:

Description (last modified by olly) (diff)

In trunk this now throws UnimplementedError, but it really should be supported:

import xapian
a=xapian.Query('A')
b=xapian.Query('B')
c=xapian.Query(xapian.Query.OP_OR, a, b)
d=xapian.Query(xapian.Query.OP_NEAR, c, c)

Change History

Changed 16 months ago by richard

  • blocking set to 120

Marking as for 1.0.x - would be nice to fix soon, but certainly shouldn't block a release.

Changed 16 months ago by olly

  • owner changed from newbugs to olly

Oh, I have a partially written patch for this somewhere...

Changed 15 months ago by olly

  • status changed from new to assigned

Changed 15 months ago by trac

  • platform set to All

Changed 9 months ago by richard

  • description modified (diff)
  • milestone set to 1.1

Changed 9 months ago by richard

  • blocking deleted

(In #120) Remove the unfixed dependencies so we can close this bug - they're all marked for the 1.1.0 milestone.

Changed 3 weeks ago by olly

  • description modified (diff)

Fix formatting of description.

We should at least fix the AssertionError here, and that should be easy to do so let's try to do it for 1.0.0.

I did work on a patch to implement NEAR and PHRASE over subqueries but I didn't fully finish it and I'm not sure where it is now.

Changed 3 weeks ago by olly

  • summary changed from Attempting to create a NEAR search with two OR nodes gives assertion error to NEAR search with two OR subqueries should be supported
  • type changed from defect to enhancement
  • description modified (diff)
  • milestone changed from 1.1.0 to 1.1.1

(In comment:7 I meant 1.1.0 not 1.0.0, though this will likely be backported to 1.0.10 too).

The AssertionError issue is fixed in trunk by r11706, so retitling, milestoning, etc.

Note: See TracTickets for help on using tickets.