g.gremlin.execute('create index Student.name on Student (name) fulltext engine lucene')
SystemError: ({'status': '500', 'transfer-encoding': 'chunked', 'server': 'grizzly/2.2.16', 'connection': 'close', 'date': 'Tue, 14 Apr 2015 20:54:50 GMT', 'access-control-allow-origin': '*', 'content-type': 'application/json'}, '{"message":"","error":"javax.script.ScriptException: groovy.lang.MissingPropertyException: No such property: index for class: Script5","api":{"description":"evaluate an ad-hoc Gremlin script for a graph.","parameters":{"returnTotal":"when set to true, the full result set will be iterated and the results returned (default is false)","rexster.returnKeys":"an array of element property keys to return (default is to return all element properties)","rexster.showTypes":"displays the properties of the elements with their native data type (default is false)","load":"a list of \'stored procedures\' to execute prior to the \'script\' (if \'script\' is not specified then the last script in this argument will return the values","rexster.offset.end":"end index for a paged set of data to be returned","rexster.offset.start":"start index for a paged set of data to be returned","params":"a map of parameters to bind to the script engine","language":"the gremlin language flavor to use (default is groovy)","script":"the Gremlin script to be evaluated"}},"success":false}')
CREATE INDEX <name> ON <class-name> (prop-names) FULLTEXT ENGINE LUCENE
--
---
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/Oi34bWhARAU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to orient-databa...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
select from MyV set element_name = "myv"
update MyV set element_name = "myv"
In [9]: data = {"@class":"MyV","ovgid":"test1", "element_type":"MyV"}
In [10]: v=g.vertices.create(data)
orientdb> create database plocal:/tmp/foodb admin admin
Creating database [plocal:/tmp/foodb] using the storage type [plocal]...
Database created successfully.
Current database is: plocal:/tmp/foodb
orientdb {db=foodb}>
orientdb {db=foodb}> create class MyV extends V
Class created successfully. Total classes in database now: 11
from bulbs.model import Node
class MyV(Node):
element_type = "myv"
g.add_proxy("myv", MyV)
20:51:31 In [38]: g.vertices.create({"element_type":"myv", "@class":"MyV", "myid":1})
20:51:55Out [38]: <MyV: http://localhost:8182/graphs/v2/vertices/#11:4>
orientdb> connect remote:localhost/foodb admin admin
Connecting to database [remote:localhost/foodb] with user 'admin'...OK
orientdb {db=foodb}> select from V where myid = 1
----+-----+------+----+------------
# |@RID |@CLASS|myid|element_type
----+-----+------+----+------------
0 |#11:4|MyV |1 |myv
----+-----+------+----+------------