Opened 15 years ago

Closed 14 years ago

#480 closed enhancement (fixed)

Single-ended ranges not yet supported by query parser

Reported by: Hachiya Owned by: Olly Betts
Priority: normal Milestone: 1.2.1
Component: QueryParser Version:
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Operating System: All

Description

There currently isn't support for single-ended ranges when parsing range queries.

See http://xapian.org/docs/valueranges.html

One suggestion would be to simply omit that part of the query. So if the prefix being used is "$" for example with a numeric range:

regular range query: $100..200

single-ended range query:

$100..

to denote 100 up to the end

$..200

to denote from the beginning to 200

Change History (2)

comment:1 by Olly Betts, 14 years ago

Milestone: 1.2.x1.2.1
Status: newassigned

Working on this for 1.2.1.

comment:2 by Olly Betts, 14 years ago

Resolution: fixed
Status: assignedclosed

Implemented in trunk r14714.

I don't think we should be backporting new features to 1.0.x at this point, so closing.

Note: See TracTickets for help on using tickets.