You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Martijn Dwars (JIRA)" <ji...@apache.org> on 2019/01/21 20:39:00 UTC

[jira] [Updated] (TINKERPOP-2136) Inside lower bound inclusion (documentation)

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

Martijn Dwars updated TINKERPOP-2136:
-------------------------------------
    Issue Type: Improvement  (was: Bug)

> Inside lower bound inclusion (documentation)
> --------------------------------------------
>
>                 Key: TINKERPOP-2136
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2136
>             Project: TinkerPop
>          Issue Type: Improvement
>            Reporter: Martijn Dwars
>            Priority: Trivial
>
> On [http://tinkerpop.apache.org/docs/current/reference/#has-step] there is an example:
> {code:java}
> g.V().has('age',inside(20,30)).values('age') // 1
> {code}
> with the comment:
> {code:java}
> Find all vertices whose ages are between 20 (inclusive) and 30 (exclusive).
> {code}
> But if I run this in the Gremlin Groovy shell I see:
> {code:java}
> gremlin> g.V().has('age', inside(10, 30)).toString()
> ==>[GraphStep(vertex,[]), HasStep([age.and(gt(10), lt(30))])]
> {code}
> which means the lower bound and upper bound are both exclusive. In particular, the lower bound is exclusive, _not_ inclusive. Right?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)