Hi,
in your case you could try the creation of the index and then proceed with
the insertions of the records like this:
create class Person extends V
create property Person.name string
create property Person.address string
create index Person.name on Person(name) NOTUNIQUE
I used NOTUNIQUE to avoid problems with duplicates keys on the field "name"
insert into Person(name, address) values ("name1", "city1")
insert into Person(name, address) values ("name2", "city2")
or
create vertex Person set name="name3", address="city3"
and then you can query by using the index:
select from index:Person.name where key="name1"
--
---
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.