How to Traverse on indexes

34 views
Skip to first unread message

Shishya

unread,
Feb 27, 2014, 5:55:50 AM2/27/14
to orient-...@googlegroups.com
Hi,

I am trying to traverse from indexes as per following statement, but it returns only first rid

traverse out() from (select from index:idxtitle where key = 'nano') while $depth < 3

Please help

Regards

Luca Garulli

unread,
Feb 27, 2014, 9:32:38 AM2/27/14
to orient-database
Hi,
try this:

traverse out() from (select expand(rid) from index:idxtitle where key = 'nano') while $depth < 3

Lvc@


--
 
---
You received this message because you are subscribed to the Google Groups "OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orient-databa...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

prabhat

unread,
Mar 6, 2014, 2:43:15 AM3/6/14
to orient-...@googlegroups.com
Thanks a lot Luca.
But a range selection from where clause fails on this command.

traverse out() from (select expand(rid) from index:idxtitle where key = 'nano'  and time_stamp < 1381190400) while $depth < 3

Is this by design?


--
 
---
You received this message because you are subscribed to a topic in the Google Groups "OrientDB" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/orient-database/A2y84SK_vcg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to orient-databa...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages