Reputation: 31
I am using orientdb 2.1.4. I have a class(Vertex) ParentV which has subclass(Vertex) ChildV.
When I query the database using getVertices("ParentV", new String[]{key}, new Object[]{value}), no results of "ChildV" type are found.
Could anyone let me know how to enable polymorphic search in above function because I need all the results(including parent and child classes) where given key matches given value.
Note: I can't use any other getVertices function because there are cases with multiple key and values. These functions are provided by tinkerpop blueprints APIs.
Upvotes: 2
Views: 74