You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@usergrid.apache.org by "Ayesha Amrin Dastagiri (JIRA)" <ji...@apache.org> on 2016/09/06 19:34:21 UTC

[jira] [Closed] (USERGRID-1314) Or queries fail when field "name" is included

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

Ayesha Amrin Dastagiri closed USERGRID-1314.
--------------------------------------------
    Assignee: Ayesha Amrin Dastagiri

> Or queries fail when field "name" is included
> ---------------------------------------------
>
>                 Key: USERGRID-1314
>                 URL: https://issues.apache.org/jira/browse/USERGRID-1314
>             Project: Usergrid
>          Issue Type: Bug
>            Reporter: David Johnson
>            Assignee: Ayesha Amrin Dastagiri
>
> When I fixed the Query Validator module, I found that about 5 of the tests fail to return correct results.
> All of the failing queries use an OR operator with a field named "name" for example, these queries (from EntityIndexTest in the query index module) work fine:
>         testQuery( scope, searchTypes, "age > 35", 29 );
>         testQuery( scope, searchTypes, "age <= 35", 73 );
>         testQuery( scope, searchTypes, "age <= 35 or age > 35", 102 );
> But this query returns 0 results because the presence of the "name" field seems to turn the OR query into an AND query.
>         testQuery( scope, searchTypes, "name = 'astro*' or age > 35", 29 );
> Until this is fixed, I have marked the five failing tests in UserQueryIT (in the query-validator module) with the @Ignore annotations.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)