I just realized that I'm trying to interpret the SQL query with the Gremlin 
interpreter.

Still I don't know how to execute it.

On Tuesday, April 14, 2015 at 9:01:17 PM UTC+5:30, Kevin I wrote:
>
> I have the Lucene index plugin installed and active. I just can't figure 
> out how to create indices. I tried this:
>
> g.gremlin.execute('create index Student.name on Student (name) fulltext 
> engine lucene')
>
> but it doesn't work. Returns the following error:
>
> 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}'
> )
>
> What am I missing here?
>

-- 

--- 
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.

Reply via email to