You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "stephen mallette (JIRA)" <ji...@apache.org> on 2015/03/27 21:59:53 UTC
[jira] [Closed] (TINKERPOP3-590) Label-query not working when using
StrategyGraph
[ https://issues.apache.org/jira/browse/TINKERPOP3-590?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
stephen mallette closed TINKERPOP3-590.
---------------------------------------
Resolution: Won't Fix
Fix Version/s: 3.0.0.GA
This issue won't be directly fixed as `GraphStrategy` has been replaced by `TraversalStrategy`. All strategies will be developed within the context of a `Traversal` which simplifies the boilerplate even beyond what `GraphStrategy` did for TP2 "wrapppers". The limitation of course is that `TraversalStrategy` only applies to `Traversal` objects so you can't really add functionality at the `Graph` level. If someone needs to to do that they will need to build custom wrappers (which tends to get complicated, at least insofar as trying to provide a generalized approach to them....maybe easier to do in a specific domain, but i'm not completely clear on that).
With respect to this specific issue, `IdStrategy` has been replaced by `ElementIdStrategy`. Expecting that this will be working better now:
{noformat}
gremlin> g.addV(id, "43a", label, "people").id()
==>43a
gremlin> g.V().has(label,"people")
==>v[1]
{noformat}
> Label-query not working when using StrategyGraph
> ------------------------------------------------
>
> Key: TINKERPOP3-590
> URL: https://issues.apache.org/jira/browse/TINKERPOP3-590
> Project: TinkerPop 3
> Issue Type: Bug
> Components: structure
> Reporter: Eirik Stenersen Sand
> Priority: Critical
> Fix For: 3.0.0.GA
>
>
> When using IdStrategy (version M7), label-lookup is not returning any results.
> {code:java}
> GraphTraversal<Vertex, Element> traversal = strategyGraph.V().has(T.label, "people");
> System.out.println("graph.hasNext(): " + traversal.hasNext()); // hasNext() = false
> {code}
> Reproducible code:
> https://gist.github.com/ezand/e20390157784ed9e0762#file-gistfile1-java
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)