You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Bob Laferriere (JIRA)" <ji...@apache.org> on 2014/04/02 22:31:16 UTC

[jira] [Issue Comment Deleted] (SOLR-5949) Stopwords in Boolean Query Result in invalid query

     [ https://issues.apache.org/jira/browse/SOLR-5949?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bob Laferriere updated SOLR-5949:
---------------------------------

    Comment: was deleted

(was: Also, I am not searching with the quotes as a full phrase match. I just used that to highlight the issue. The search is sent over as q:(No AND Smoking AND Sign) and not q:"No AND Smoking AND Sign" which I believe you are indicating. I know that is not supported. But I am not doing a phrase query.)

> Stopwords in Boolean Query Result in invalid query
> --------------------------------------------------
>
>                 Key: SOLR-5949
>                 URL: https://issues.apache.org/jira/browse/SOLR-5949
>             Project: Solr
>          Issue Type: Bug
>          Components: query parsers
>    Affects Versions: 4.3
>         Environment: Linux
>            Reporter: Bob Laferriere
>
> This seems a repeat of SOLR-261 which was fixed in 1.3 but I am seeing the same behavior described. When I have a stopword in a boolean query the resulting query is invalid. 
> e.g. Document --> "No Smoking Sign"
> Stopword: "No"
> Query:"No AND Smoking AND Sign"
> The resultant query is a boolean query with a blank field so an empty boolean query. This is expanding as "? Smoking Sign" which then leads to no matches as "?" AND "Smoking" AND "sign" has no match.
> The expected behavior is to remove the empty boolean clause from the query. In the Analysis tool the parsing showing that "No AND Smoking AND Sign" analyzes to "Smoke Sign". I would expect the same behavior by the QueryParser, but this is not true. The real parsed query is trying to do the following: <empty boolean query> Smoke Sign.
> The only workaround is to never allow stopwords in the query or turn off stopwords entirely.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org