I am using Titan 1.0.0 with Cassandra as storage backend and elasticsearch as indexing backend, want to model a complex graph with multiple vertices and edges. I've following considerations to make:
Should I chose to have multiple MixedIndexes with single property each OR single MixedIndex with multiple properties?
mgmt.buildIndex('nameAndAge',Vertex.class).addKey(name,Mapping.TEXT.getParameter()).addKey(age,Mapping.TEXT.getParameter()).buildMixedIndex("search")
OR
mgmt.buildIndex('nameMixed',Vertex.class).addKey(name,Mapping.TEXT.getParameter()).buildMixedIndex("search")
mgmt.buildIndex('ageMixed',Vertex.class).addKey(age,Mapping.TEXT.getParameter()).buildMixedIndex("search")
if I've to chose singel Mixed index with multiple properties then can it span across properties on edges and vertices OR is there any guideline?
- Is it better to have properties shared across Vertices / Edges? Meaning I want to have property "onDate" and have it for edges "Registered", "MarriedTo", "AgreedToTerms" and vertices "Order", "Travel".
Shall there be any special considerations if that property need to have index?