#106: search_pattern_parenthesised "Unknown Operator"
-----------------------+----------------------------------------------------
Reporter: jblayloc | Owner:
Type: defect | Status: new
Priority: major | Milestone:
Component: WebSearch | Version:
Keywords: |
-----------------------+----------------------------------------------------
Cf. Admin RT Ticket #84545.
>> >> 2010-06-03 13:06:47 -> AssertionError: Unknown operator in
search_pattern_parenthesised()
>>>> >>>> Frame search_pattern_parenthesised in /usr/lib/python2.4/site-
packages/invenio/search_engine.py at line 1932
*******************************************************************************
1929 p = p.replace('(', ' ')
1930 p = p.replace(')', ' ')
1931
***** 1932 return search_pattern(req, p, f, m, ap, of, verbose,
ln, display_nearest_terms_box=display_nearest_terms_box)
1933
1934 def search_unit(p, f=None, m=None):
1935 """Search for basic search unit defined by pattern 'p' and
field
*******************************************************************************
index = 4
parser =
<invenio.search_engine_query_parser.SearchQueryParenthesisedParser
instance at 0x2aaab349f680>
verbose = 0
result_hitset = intbitset([13789, 14564, 14565, 14895,
15747, 25586, 26466, 39870, 53785, 65220, 72976, 78169, 86827, 125016,
137238, 143699, 146679, 150605, 158111, 159937, 161390, 163424, 168306,
168307, 169330, 171001, 171053, 173224, 179703, 181245, 183232, 184819,
187057, 187101, 187129, 189119, 195173, 208433, 212152, 213445, 215043,
215542, 215780, 218995, 218997, 219055, 219056, 220968, 221876, 222015,
226380, 226545, 227313, 228686, 228826, 231682, 236272, 238308, 240259,
243977, 247599, 252006, 255682 [...]
f = ''
ln = 'en'
current_hitset = intbitset([1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46,
47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64],
trailing_bits=True)
req =
<invenio.webinterface_handler_wsgi.SimulatedModPythonRequest object at
0x2b11ed8117d0>
current_pattern = '+'
m = None
p = '(author:"liu, h*") and (author:"iqbal,
n*") and title:membrane'
spires_syntax_converter =
<invenio.search_engine_query_parser.SpiresToInvenioSyntaxConverter
instance at 0x2aaab349e998>
ap = 1
parsing_result = ['+', 'author:"liu, h*"', '+', '+',
'author:"iqbal, n*"', '+', '+ title:membrane']
display_nearest_terms_box = True
of = Field('of', 'hb')
current_operator = 'author:"iqbal, n*"'
_ = <bound method GNUTranslations.gettext of
<gettext.GNUTranslations instance at 0x2b11ed879638>>
I haven't looked into what's going on. These happen fairly often though
so it must be important that this get fixed.
--
Ticket URL: <http://cdswaredev/invenio/ticket/106>
Invenio <http://invenio-software.org>