Re: [orientdb] Restrict ShortestPath and Dijkstra to a specific Edge class

2015-02-10 Thread Rémi ALVADO
Thanks for the (very very) quick reply ! I've already implemented my little hack (I knew it was one :) ). I deploy it on our dev server so that other developers can work on top of it and I'll start working on a PR right away. I loved working with OrientDB so far and your reply make me wanted to d

Re: [orientdb] Restrict ShortestPath and Dijkstra to a specific Edge class

2015-02-10 Thread Luigi Dell'Aquila
Hi guys, you have two easy ways to do this (the first one is easier IMHO): 1. copy Dijkstra implementation to another class (put it in the same package and give it another name), do your changes and register it in com .orientechnologies.orient.graph.sql.functions.OGraphFunctionFactory. Then, in th

[orientdb] Getting Raw json output from java

2015-02-10 Thread Sivaprasad PS
Is it possible to get raw json from orientdb through the java api? I have a java service layer existing between my browser and orientdb and in a lot of cases acts as a passthrough. It seems inefficient to get the java object using document api and convert it to json again before sending it the b

Re: [orientdb] Restrict ShortestPath and Dijkstra to a specific Edge class

2015-02-10 Thread Rémi ALVADO
Hi Luigi, I'm new to graph databases and I have the same question as Georg regarding shortestPath restricted to an edge class. I think you're right and it will probably spend a few hours preparing a pull request to implement this kind of filter in OSQLFunctionShortestPath.java

[orientdb] User, Roles, Links and Embedded Links with ETL

2015-02-10 Thread Gregor Frey
Hi, is it possible to create User and Roles with ETL (from an Excel)? And how about Links and Embedded Links? Can they be created as well? Ciao Gregor -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop rec

[orientdb] Clustering

2015-02-10 Thread Siang Hwee Goh
Hi, I was trying out the clustering feature as mentioned here and it looks very powerful and promising. However, I found out later multiple clustering seems like not supported in 2.0 as mentioned in this question

Re: [orientdb] Re: KeywordAnalyzer, no results

2015-02-10 Thread Enrico Risa
Hi Erick can you post the text that you are indexing? so i can double check? thanks 2015-02-11 3:10 GMT+01:00 Erik Peterson : > I've tested on 2.0.2 now and still no results for KeywordAnalyzer. Other > index schemes return results though not adequate matches compared to what > KeywordAnalyzer

[orientdb] How to effectivly implement tagging with OrientDb

2015-02-10 Thread Georg Göttlich
I want to add tagging to a OrientDb class. My current approach is using an embeddedset field containing plain text labels and an index on that field. But I was wondering if there maybe is an established "best practices" for tagging with OriebtDb, for optimal performance ans ease of use. (This i

Re: [orientdb] Restrict ShortestPath and Dijkstra to a specific Edge class

2015-02-10 Thread Georg Göttlich
Hi Luigi. Thanks for the answer. I had a quick look at the code and it seems that adding an extra check and parameter to the getNeighbors function in the OSQLFunctionPathFinder class could do the trick. But it's a while since I've been in Java-Land and I'm a bit unsure on how I actually would

[orientdb] Re: KeywordAnalyzer, no results

2015-02-10 Thread Erik Peterson
I've tested on 2.0.2 now and still no results for KeywordAnalyzer. Other index schemes return results though not adequate matches compared to what KeywordAnalyzer should. So seems there is a bug...anyone else that can verify? Thanks. On Friday, February 6, 2015 at 10:20:19 PM UTC-7, Erik Peters

[orientdb] Re: How can I decode the OrientDb network binary token in my client app?

2015-02-10 Thread greenpea
Hi Chris Thanks for your response, it's good to confirm the expected format. I've given your suggestion a try using https://www.npmjs.com/package/btoa Under the hood it does the same as simply using arrayBuffer.toString('base64') and alas the result is the same as I was already getting. The en

[orientdb] CEP design with orient db

2015-02-10 Thread Danilo Rizzo
Hi All, I would like to have your point of view regarding my idea of using Orient DB as database for CEP system. I should support around 1M events in total across all the available users - around 10 mln. The two main reqs I have are: - fast read & write - keeping the temporal sequence of rece

Re: [orientdb] Re: What are the unaccounted for bytes before a Binary Schemaless Serialization record?

2015-02-10 Thread Philip Wernersbach
Thanks for pointing that out, I really appreciate it! I wasn't aware that there was a literal Record type. Thanks, Philip Wernersbach On Tue, Feb 10, 2015 at 3:28 PM, Christian Kramer wrote: > Hey, > > sorry missed that. So these bytes are part of the record response of this > command (synch-re

[orientdb] Evaluating OrientDB as reliable distributed DB. Migration, deployment, questions

2015-02-10 Thread Viktor Alexandrov
Hi all! I'd like to begin using OrientDB in a project that needs to hold some amount on data in a distributed (elastic) database. The amount is about 200-500 GB of data. We need consistency, low latency, high throughput (up to 3 updates/s). At the moment we use Couchbase as our (document) D

[orientdb] help query edge

2015-02-10 Thread Renzo Ludeña
Hello friends I need your help I have little time using orientdb and love :), according to the image each edge has a different property that is the color for example user1 -> owner

[orientdb] Re: Index constraint on more than one edge

2015-02-10 Thread Keith Freeman
Yeah, that's what I was suggesting, didn't know about your additional constraint (C -> many B's). In that case you could add an edge C-> A and make that unique if that fits your use-case. But I don't think orient has any index or other thing that will ensure uniqueness of multiple edges in a

[orientdb] Re: How can I decode the OrientDb network binary token in my client app?

2015-02-10 Thread Christian Kramer
Hey, i'm not into nodejs development, but at first you're right its a jwt and it has the typical three parted base64 structure with '.' as delimeter. Did you try to convert the bytearray this way (http://stackoverflow.com/a/11562550): var base64String = btoa(String.fromCharCode.apply(null, new

Re: [orientdb] Re: What are the unaccounted for bytes before a Binary Schemaless Serialization record?

2015-02-10 Thread Christian Kramer
Hey, sorry missed that. So these bytes are part of the record response of this command (synch-result-content, can only be a record). And the "signature" of a record is "(record-type:byte)(cluster-id:short)(cluster-position:long)(record-version:int)(record-content:bytes)" and the short before

[orientdb] Re: Index constraint on more than one edge

2015-02-10 Thread Lucas de Oliveira Teixeira
Keith, Thanks for taking the time to answer it. Do you mean: create index hasC.in unique Or create another edge from C back to B, and make it unique? Anyway, I may be mistaken but I don't think that work. Adding that unique index from C back to B would guarantee a single B for each C, is that

[orientdb] How can I decode the OrientDb network binary token in my client app?

2015-02-10 Thread greenpea
I'm looking for some help in retrieving a user id from the binary network token generated through OrientDB: https://github.com/orientechnologies/orientdb/wiki/Network-Binary-Token-Format I'm able to authenticate users and retrieve the token, but am so far unable to identify the authenticated us

Re: [orientdb] Re: What are the unaccounted for bytes before a Binary Schemaless Serialization record?

2015-02-10 Thread Philip Wernersbach
Christian, Thanks for the reply. I reread the Request section, but the bytes I'm asking about are in the "synch-result-content" section of the REQUEST_COMMAND command-specific reply data. Sincerely, Philip Wernersbach On Mon, Feb 9, 2015 at 2:17 AM, Christian Kramer wrote: > Hey, > > take a lo

Re: [orientdb] Re: shortest path for noobs

2015-02-10 Thread Charles Bandes
It's possible that I'm getting hung up by using the studio rather than the console. The first query: select shortestPath(#11:35954, #11:65193, "Both") { "result": [ { "@type": "d", "@rid": "#-2:1", "@version": 0, "shortestPath": [

Re: [orientdb] Re: shortest path for noobs

2015-02-10 Thread Luca Garulli
Hi Charles, Could you write the result of first query? By the way don't use FLATTEN (deprecated long time ago), but rather EXPAND ? Lvc@ ᐧ On 10 February 2015 at 16:15, Charles Bandes wrote: > Hi Luca, is this still the preferred method? If I execute: > > select shortestPath(#11:35954, #11:6519

Re: [orientdb] Re: shortest path for noobs

2015-02-10 Thread Charles Bandes
Hi Luca, is this still the preferred method? If I execute: select shortestPath(#11:35954, #11:65193, "Both") I get an object with five @rid as I'd expect but if I try select flatten(shortestPath(#11:35954, #11:65193, "Both")) I get no result at all On Monday, May 27, 2013 at 6:49:43 AM UTC-4,

Re: [orientdb] Ubuntu Upstart Script

2015-02-10 Thread Emanuel
feel free to do a pull request, just update this: https://github.com/orientechnologies/orientdb/blob/master/server/script/orientdb.sh and submit the pull bye Emanuel On 09/02/15 16:56, Aaron Gooch wrote: Hey all, is this still an open issue? I've been reviewing OrientDB for work and modified

[orientdb] Upgrade to 2.0.2: Could not initialize class com.orientechnologies.orient.ODatabaseRecordThreadLocal

2015-02-10 Thread Roar
I'm testing an upgrade from from 1.7.10 to 2.0.2 using the Migration guide on the Wiki. The only change I had to do make changing the connection pool. We are running OSGI and are embedding all Orientdb bundles and their dependencies into our bundle. I checked that all orientdb bundles included

Re: [orientdb] Help writing a Simple Query

2015-02-10 Thread Riccardo Tasso
2015-02-10 12:52 GMT+01:00 Khaled B : > However, I can't figure out the correct syntax to exclude existing friends. > Hi, probably you will find usefull the difference function ( http://www.orientechnologies.com/docs/last/orientdb.wiki/SQL-Functions.html#difference ). For example: SELECT diffe

Re: [orientdb] OrientDB in android

2015-02-10 Thread Shiva Murthy B
Hi Luca, I couldnt find latest 2.0 version for android. Can you please share the link.? On Tuesday, 10 February 2015 17:20:54 UTC+5:30, Lvc@ wrote: > > Hi Shiva, > That distribution is pretty old and based on OrientDB 1.1. Any chance to > update it to 2.0? > > Lvc@ > ᐧ > > On 10 February 2015

[orientdb] Help writing a Simple Query

2015-02-10 Thread Khaled B
Hello, I'm using orientdb community version 2.0.1 and I'm just getting started with learning using this technology. I have a simple vertex class User with a unique UserID parameter. I also created an edge Friend linking users together. If user 1 and 2 are friends, then I have 2 Friend edges cr

Re: [orientdb] OrientDB in android

2015-02-10 Thread Luca Garulli
Hi Shiva, That distribution is pretty old and based on OrientDB 1.1. Any chance to update it to 2.0? Lvc@ ᐧ On 10 February 2015 at 12:15, Shiva Murthy B wrote: > Hi Luca, > I used plocal still getting exception saying "Cannot create database". And > I'm getting following exception also when I u

Re: [orientdb] How to add Lucene ArabicAnalyzer

2015-02-10 Thread Noorul Farhan Ahmed
Thanks, that worked. Regards On Monday, February 9, 2015 at 9:49:32 AM UTC+3, Enrico Risa wrote: > > Hi Noorul > > should be available in the lucene jar > > > http://lucene.apache.org/core/4_6_0/analyzers-common/org/apache/lucene/analysis/ar/ArabicAnalyzer.html > > You can change it using the Meta

Re: [orientdb] OrientDB in android

2015-02-10 Thread Shiva Murthy B
Hi Luca, I used plocal still getting exception saying "Cannot create database". And I'm getting following exception also when I use db.open() api. Error on opening database: the engine 'plocal' was not found I'm using following jar files android-bsf-api-3.1.3.jar javassist.jar javax.persistence-2

[orientdb] Re: OrientDB in android

2015-02-10 Thread Enrico Di Marco
Seems intresting, would you share your experience about it? if it is feasable to integrate it with a contentProvider and how it perform inside a device thanks Il giorno martedì 10 febbraio 2015 11:12:16 UTC+1, Shiva Murthy B ha scritto: > > I want to start orientDB in android. I'm getting data

Re: [orientdb] OrientDB in android

2015-02-10 Thread Luca Garulli
Hi Shiva, Please use "plocal", not "local". Luca ᐧ On 10 February 2015 at 11:12, Shiva Murthy B wrote: > I want to start orientDB in android. I'm getting database cannot open > exception with following code. > > OObjectDatabaseTx db = new > OObjectDatabaseTx("local:/data/data/com.shiva.orientd

[orientdb] OrientDB in android

2015-02-10 Thread Shiva Murthy B
I want to start orientDB in android. I'm getting database cannot open exception with following code. OObjectDatabaseTx db = new OObjectDatabaseTx("local:/data/data/com.shiva.orientdb/databases/nosql/orient/primary"); db.create(); Can you please provide sample code to create database and for CRU

[orientdb] help

2015-02-10 Thread Gianluca Cristiano
I have a set of nodes characterized by a name and a state (on, off), a set of edges characterized by a weight, building the graph properly, I should do a query that I had to return the total weight of the incoming edges in a knot off but can only be activated by active nodes connected by arcs. I

[orientdb] Re: Problem : no connection to the remote database

2015-02-10 Thread 'Curtis Mosters' via OrientDB
I never tried out such a thing. But you could also ask here: https://groups.google.com/forum/#!topic/orient-database/g1FHuSwsUPk and this way didnt for you? https://github.com/orientechnologies/orientdb/wiki/DB-Server Am Donnerstag, 5. Februar 2015 19:05:49 UTC+1 schrieb Sébastien Auriel: > > H