lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jack Krupansky" <j...@basetechnology.com>
Subject Bug: edismax doesn't parse (*:*) properly
Date Tue, 14 Aug 2012 17:55:27 GMT
I just happen to notice that (*:*) is not parsed properly by edismax in 4.0-beta. It appears
to require spaces before and after the *:*, otherwise it treats the colon as part of a wildcard
term (see the escaping below). I haven’t tried other releases yet.

Some variations I tried:

<str name="rawquerystring">(*:*)</str>
<str name="querystring">(*:*)</str>
<str name="parsedquery">(+DisjunctionMaxQuery((text:*\:*)))/no_coord</str>
<str name="parsedquery_toString">+(text:*\:*)</str>
<lst name="explain"/>
<str name="QParser">ExtendedDismaxQParser</str>

<str name="rawquerystring">( *:*)</str>
<str name="querystring">( *:*)</str>
<str name="parsedquery">(+DisjunctionMaxQuery((text:*\:*)))/no_coord</str>
<str name="parsedquery_toString">+(text:*\:*)</str>
<lst name="explain"/>
<str name="QParser">ExtendedDismaxQParser</str>

<str name="rawquerystring">(*:* )</str>
<str name="querystring">(*:* )</str>
<str name="parsedquery">(+DisjunctionMaxQuery((text:*\:*)))/no_coord</str>
<str name="parsedquery_toString">+(text:*\:*)</str>
<lst name="explain"/>
<str name="QParser">ExtendedDismaxQParser</str>

<str name="rawquerystring">( *:* )</str>
<str name="querystring">( *:* )</str>
<str name="parsedquery">(+MatchAllDocsQuery(*:*))/no_coord</str>
<str name="parsedquery_toString">+*:*</str>
<lst name="explain"/>
<str name="QParser">ExtendedDismaxQParser</str>

<str name="rawquerystring">(*:* -fox)</str>
<str name="querystring">(*:* -fox)</str>
<str name="parsedquery">
(+(DisjunctionMaxQuery((text:*\:*)) -DisjunctionMaxQuery((text:fox))))/no_coord
</str>
<str name="parsedquery_toString">+((text:*\:*) -(text:fox))</str>
<lst name="explain"/>
<str name="QParser">ExtendedDismaxQParser</str>

<str name="rawquerystring">( *:* -fox)</str>
<str name="querystring">( *:* -fox)</str>
<str name="parsedquery">
(+(MatchAllDocsQuery(*:*) -DisjunctionMaxQuery((text:fox))))/no_coord
</str>
<str name="parsedquery_toString">+(*:* -(text:fox))</str>
<lst name="explain"/>
<str name="QParser">ExtendedDismaxQParser</str>

I’ll file a Jira later today.

-- Jack Krupansky
Mime
View raw message