lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <erik.hatc...@gmail.com>
Subject Re: Bug in query parser?
Date Fri, 28 Dec 2012 18:49:43 GMT
Looks like you're being hit by https://issues.apache.org/jira/browse/SOLR-3377, which is marked
as fixed in 4.0, but not any version of 3.x

	Erik

On Dec 28, 2012, at 13:06 , Fran├žois Schiettecatte wrote:

> Hi
> 
> Just ran into this bug while playing around with 3.6. Using edismax and entering a a
search like this "(text:foobar)" causes the query parser to mangle the query as shown by the
results below. Adding a space after the first paren solves this. I checked 3.6.1 and get the
same issue. I recall an issue like this in 3.6.0 but thought it was quashed in 3.6.1?
> 
> 
> <response>
> <lst name="responseHeader">
> <int name="status">0</int>
> <int name="QTime">2</int>
> <lst name="params">
> <str name="mm">1</str>
> <str name="sort">score desc, prefix_sort desc</str>
> <str name="indent">on</str>
> <str name="qf">number^5 title^3 text</str>
> <str name="wt">standard</str>
> <str name="version">2.2</str>
> <str name="rows">10</str>
> <str name="defType">edismax</str>
> <str name="pf">text^2</str>
> <str name="fl">*,score</str>
> <str name="debugQuery">on</str>
> <str name="start">0</str>
> <str name="q">(text:foobar)</str>
> <str name="qt">search</str>
> <str name="ps">100000</str>
> </lst>
> </lst>
> <result name="response" numFound="0" start="0" maxScore="0.0"/>
> <lst name="debug">
> <str name="rawquerystring">(text:foobar)</str>
> <str name="querystring">(text:foobar)</str>
> <str name="parsedquery">
> +DisjunctionMaxQuery((text:textfoobar | title:textfoobar^3.0 | number:text:foobar^5.0))
()
> </str>
> <str name="parsedquery_toString">
> +(text:textfoobar | title:textfoobar^3.0 | number:text:foobar^5.0) ()
> </str>
> <lst name="explain"/>
> <str name="QParser">ExtendedDismaxQParser</str>
> 
> 
> Cheers
> 
> Fran├žois


Mime
View raw message