[Xapian-discuss] Symptom with twenty-five clause predicate

James Aylett james-xapian at tartarus.org
Mon May 12 18:08:29 BST 2008


On Mon, May 12, 2008 at 11:55:03AM -0500, Cameron Laird wrote:

>    - __traceback_info__: ('+kind:"Files" +(allow:"KarlAdmins" OR allow:"KarlStaff" OR allow:"KarlSysAdmins" OR allow:"KarlTOSAccepted" OR allow:"KarlTOSSent" OR allow:"NetworkNewsAdmins" OR allow:"OSI-New York" OR allow:"Open Society Institute" OR allow:"aboutkarl" OR allow:"cookingcommunity" OR allow:"financialandadministrativeproceduresfaap" OR allow:"freefood" OR allow:"governinginternationalemergencies" OR allow:"greenerosius" OR allow:"karladministration" OR allow:"karlcoreteam" OR allow:"karlfeedbackcommunity" OR allow:"karlpresentationatploneconference" OR allow:"karlsuperusers" OR allow:"natscommunityofone" OR allow:"oxfamdiscussion" OR allow:"thesoftersideofkarl" OR allow:"zimbabwe") +US transparency and', None, None, True, None, 1, True) 
>   Module lemur.xapian.sei, line 1761, in _makeQuery 
>   Module xapian, line 1144, in parse_query 
> QueryParserError: Syntax: <expression> AND <expression>

Looks like you have FLAG_BOOLEAN enabled on the query parser (which
results in the OR operators working as expected). However the 'and' at
the tail end of the query is kicking a syntax problem, which means you
have FLAG_BOOLEAN_ANY_CASE turned on. Try turning that off and see
what happens.

J

-- 
/--------------------------------------------------------------------------\
  James Aylett                                                  xapian.org
  james at tartarus.org                               uncertaintydivision.org



More information about the Xapian-discuss mailing list