hello,
I have troubles figuring out how/when should I define my index using thunderdome.
I run titan over cassandra and my search backend is elastic search.
after I connect to the database with
thunderdome.connection.setup(['localhost'], 'graph')
I start creating Vertices like this:
class VertexPoi(thunderdome.Vertex):
gremlin_path = 'vertexpoi.groovy'
get_by_name = thunderdome.GremlinMethod(classmethod = True)
name = thunderdome.Text()
tag = thunderdome.Text()
category = thunderdome.Text()
with :
def get_by_name(name) {
g.V('name', name).next()
}
but when i query the graph
with
desired_node = VertexPoi.get_by_name("whatevever")
I get a
13/05/07 10:53:15 WARN transaction.StandardTitanTx: Query requires iterating over all vertices [(v[36028797018963994]=360)]. For better performance, use indexes
So where and when should i tell titan that I want "name" to be indexed?
thanks