Yes, the latter works--thanks! I've been struggling with trying to find the right syntax for using indexing: when writing a script, it's easy enough to use an index query to get a list of rid's, parse those, and feed them back into follow-up queries, but I couldn't figure out how to use indexing within a query, so that I get the database to do all the work with just one query.
On Wednesday, June 17, 2015 at 2:01:09 AM UTC-4, Ziink A wrote: > > Try > > CREATE EDGE FROM #14:59 to (SELECT *rid *FROM INDEX:program.path WHERE > key = '<whatever>') > > or > > CREATE EDGE FROM #14:59 to (SELECT expand(*rid) *FROM INDEX:program.path > WHERE key = '<whatever>') > > One of them should certainly work. > > > On Tuesday, June 16, 2015 at 12:23:47 PM UTC-7, Scott Orr wrote: >> >> I'm trying to create (lightweight) edges between two vertices. >> >> This code works: >> >> "CREATE EDGE FROM #14:59 TO (SELECT FROM program WHERE path = >> '<whatever>'')" >> >> This one doesn't, even though the embedded query works just fine on its >> own: >> >> CREATE EDGE FROM #14:59 to (SELECT FROM INDEX:program.path WHERE key = >> '<whatever>') >> >> >> Any idea what's going on? >> > -- --- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
