Question

I'm having trouble using the T.in operator with has() filter in Titan 0.3.2

The following Gremlin query...:

g.V("type", "articles").out("has_tag").has("name", T.in, ["foobar"])

... yields the following error in Titan console:

No such property: in for class: com.tinkerpop.gremlin.Tokens$T

Somehow related to this SO question : multiple property values in has clause of gremlin (same question, but related to Neo4J).

Was it helpful?

Solution

Titan 0.3.2 does not support TinkerPop 2.4.0 (it supports 2.3.0). I think you can expect that to be available in the soon to be release Titan 0.4.0.

In Titan 0.3.2 I think you would have to do:

g.V.filter{values.contains(it)}

Where values is your list of things to match on.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top