#131: Correct parentheses support in in search parsing
------------------------+---------------------------------------------------
Reporter: jblayloc | Owner: jblayloc
Type: defect | Status: assigned
Priority: critical | Milestone:
Component: WebSearch | Version:
Resolution: | Keywords: INSPIRE Invenio Syntax News Oct
------------------------+---------------------------------------------------
Comment (by jblayloc):
So after hunting for a very long time, struggling to understand why my
parser wasn't properly handling the nested parens cases such as (U(1)), I
found this in search_engine.py:
{{{
1894 # sanity check: do not call parenthesised parser for search terms
1895 # like U(1):
1896 if not re_pattern_parens.search(p):
1897 return search_pattern(req, p, f, m, ap, of, verbose, ln,
display_nearest_terms_box=display_nearest_terms_box)
}}}
...after struggling to fix my code, I discover it's not even being called.
Simply commenting out this line doesn't fix the problem, so something more
subtle is needed.
--
Ticket URL: <http://invenio-software.org/ticket/131#comment:20>
Invenio <http://invenio-software.org>