#602: find da > today - 14
-----------------------+-----------------
Reporter: jblayloc | Owner:
Type: defect | Status: new
Priority: major | Milestone:
Component: WebSearch | Version:
Keywords: |
-----------------------+-----------------
As reported by hoc, SPIRES syntax 'find da > today - 14' doesn't work. Of
course, the problem isn't just SPIRES syntax. Date range searches using
the arrow syntax '2011-03-04->9999', etc., generally fail.
The problem appears to be that search_engine.search_unit doesn't actually
split on the arrow, so date ranges get sent through to
search_unit_in_bibrec as arrowed ranges, and with the same string in both
field datetext1 and datetext2. The answer appears to be to split on ->
before calling search_unit_in_bibrec.
--
Ticket URL: <http://invenio-software.org/ticket/602>
Invenio <http://invenio-software.org>