You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Hoss Man (JIRA)" <ji...@apache.org> on 2007/06/16 09:22:25 UTC
[jira] Created: (SOLR-263) CLONE -Search query with any stop words
can invalidate whole query
CLONE -Search query with any stop words can invalidate whole query
-------------------------------------------------------------------
Key: SOLR-263
URL: https://issues.apache.org/jira/browse/SOLR-263
Project: Solr
Issue Type: Bug
Components: search
Affects Versions: 1.1.0
Environment: Centos 4.7, apache-tomcat-6.0.13, Java 1.6.0_01-b06
SOLR Nightly solr-2007-06-06
Reporter: Hoss Man
Fix For: 1.1.0
org.apache.solr.request.StandardRequestHandler may parse the query string incorrectly when "stop words" like "and" "of" etc... are used.
We have this query:
Collection:0
AND (Publisher:"Survey"^1 OR Creator:"Survey"^1 OR DocText:"Survey"^3 OR Description:"Survey"^4 OR Title:"Survey"^6)
AND (Publisher:"of"^1 OR Creator:"of"^1 OR DocText:"of"^3 OR Description:"of"^4 OR Title:"of"^6)
AND (Publisher:"Military"^1 OR Creator:"Military"^1 OR DocText:"Military"^3 OR Description:"Military"^4 OR Title:"Military"^6)
AND (Publisher:"Planning"^1 OR Creator:"Planning"^1 OR DocText:"Planning"^3 OR Description:"Planning"^4 OR Title:"Planning"^6)
AND (Publisher:"Systems"^1 OR Creator:"Systems"^1 OR DocText:"Systems"^3 OR Description:"Systems"^4 OR Title:"Systems"^6)
Which got parsed into this query:
+Collection:0
+(Publisher:survey Creator:survey DocText:survey^3.0 Description:survey^4.0 Title:survey^6.0)
+()
+(Publisher:militari Creator:militari DocText:militari^3.0 Description:militari^4.0 Title:militari^6.0)
+(Publisher:plan Creator:plan DocText:plan^3.0 Description:plan^4.0 Title:plan^6.0)
+(Publisher:system Creator:system DocText:system^3.0 Description:system^4.0 Title:system^6.0)
The +() makes the query not work anymore... I am thinking it is is a bug, and if all the terms are removed inside the "(" ")" the "(" ")" should be removed also.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (SOLR-263) CLONE -Search query with any stop words
can invalidate whole query
Posted by "Hoss Man (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-263?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hoss Man closed SOLR-263.
-------------------------
Resolution: Fixed
crap, sorry for the noise ... i thought i could clone an issue to a different projects
> CLONE -Search query with any stop words can invalidate whole query
> -------------------------------------------------------------------
>
> Key: SOLR-263
> URL: https://issues.apache.org/jira/browse/SOLR-263
> Project: Solr
> Issue Type: Bug
> Components: search
> Affects Versions: 1.1.0
> Environment: Centos 4.7, apache-tomcat-6.0.13, Java 1.6.0_01-b06
> SOLR Nightly solr-2007-06-06
> Reporter: Hoss Man
> Fix For: 1.1.0
>
>
> org.apache.solr.request.StandardRequestHandler may parse the query string incorrectly when "stop words" like "and" "of" etc... are used.
> We have this query:
> Collection:0
> AND (Publisher:"Survey"^1 OR Creator:"Survey"^1 OR DocText:"Survey"^3 OR Description:"Survey"^4 OR Title:"Survey"^6)
> AND (Publisher:"of"^1 OR Creator:"of"^1 OR DocText:"of"^3 OR Description:"of"^4 OR Title:"of"^6)
> AND (Publisher:"Military"^1 OR Creator:"Military"^1 OR DocText:"Military"^3 OR Description:"Military"^4 OR Title:"Military"^6)
> AND (Publisher:"Planning"^1 OR Creator:"Planning"^1 OR DocText:"Planning"^3 OR Description:"Planning"^4 OR Title:"Planning"^6)
> AND (Publisher:"Systems"^1 OR Creator:"Systems"^1 OR DocText:"Systems"^3 OR Description:"Systems"^4 OR Title:"Systems"^6)
> Which got parsed into this query:
> +Collection:0
> +(Publisher:survey Creator:survey DocText:survey^3.0 Description:survey^4.0 Title:survey^6.0)
> +()
> +(Publisher:militari Creator:militari DocText:militari^3.0 Description:militari^4.0 Title:militari^6.0)
> +(Publisher:plan Creator:plan DocText:plan^3.0 Description:plan^4.0 Title:plan^6.0)
> +(Publisher:system Creator:system DocText:system^3.0 Description:system^4.0 Title:system^6.0)
> The +() makes the query not work anymore... I am thinking it is is a bug, and if all the terms are removed inside the "(" ")" the "(" ")" should be removed also.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.