You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Erick Erickson (JIRA)" <ji...@apache.org> on 2015/03/17 21:03:38 UTC
[jira] [Closed] (SOLR-2209) Syntax parsing bug..Parentheses around
field and term produce different results
[ https://issues.apache.org/jira/browse/SOLR-2209?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Erick Erickson closed SOLR-2209.
--------------------------------
Resolution: Fixed
Fix Version/s: 4.0-BETA
> Syntax parsing bug..Parentheses around field and term produce different results
> -------------------------------------------------------------------------------
>
> Key: SOLR-2209
> URL: https://issues.apache.org/jira/browse/SOLR-2209
> Project: Solr
> Issue Type: Bug
> Components: search
> Affects Versions: 1.4.1
> Reporter: Stephen
> Fix For: 4.0-BETA
>
>
> Schema:
> <field name="id" type="sint" indexed="true" stored="true" required="true" />
> <field name="account_id" type="sint" indexed="true" stored="true" required="true" />
> <field name="user_id" type="sint" indexed="true" stored="true" required="false" />
> Indexed documents:
> id: 1, UserId: 0, AccountId: 1
> id: 2, UserId: 0, AccountId: 1
> id: 3, UserId: 1, AccountId: 1
> id: 4, UserId: 2, AccountId: 1
> id: 5, UserId: 3, AccountId: 1
> Query:
> account_id: 1 AND -user_id: 0
> Results:
> Document Ids: 3, 4, 5
> Query:
> account_id: 1 AND ( -user_id: 0 )
> Results:
> --No matched documents --
> Is this the intended behavior? I seem to recall these types of queries working in 1.4.0, but I could be wrong.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org