#302: Websearch: marquet and (nucl-th or hep-ph) != marquet and (hep-ph or nucl-
th)
------------------------+---------------------------------------------------
Reporter: jblayloc | Owner: jblayloc
Type: defect | Status: new
Priority: critical | Milestone:
Component: WebSearch | Version:
Resolution: | Keywords: INSPIRE Invenio
------------------------+---------------------------------------------------
Comment (by simko):
Note that this seems to be related to #131, the queries are parsed as:
{{{
['+', 'marquet', '+', '+ nucl | hep', '+', '- th | hep', '+', '+ nucl -
ph', '+', '- th - ph']
['+', 'marquet', '+', '+ hep | nucl', '+', '- ph | nucl', '+', '+ hep -
th', '+', '- ph - th']
}}}
while before #131 they were parsed as:
{{{
['+', 'marquet', '+', 'nucl-th | hep-th']
['+', 'marquet', '+', 'hep-th | nucl-th']
}}}
giving the same result, as expected.
IOW, this seems to be a whitespace kind of issue again, for `-` should not
be treated as NOT in this expression, quite like `(U(1) OR SL(2,Z))`
should not be treated as a nested paren expression, see the failing test
case. So maybe you can look at those together?
--
Ticket URL: <http://invenio-software.org/ticket/302#comment:2>
Invenio <http://invenio-software.org>