Condition.Like in Sparksee

34 views
Skip to first unread message

kam

unread,
Mar 8, 2015, 6:49:35 AM3/8/15
to spar...@googlegroups.com
How does a Condition.like operate in Sparksee?
Can a full-text index be created for a given attribute?

kam

unread,
Mar 9, 2015, 9:26:18 AM3/9/15
to spar...@googlegroups.com
Also, how do you do a filter on two attributes. For example author nodes having, age<50 AND salary>4000. 
The way I understood, I would need two separate neighbors and find the intersection? Is that correct?

thanks!

sparkseegdb

unread,
Mar 9, 2015, 10:20:27 AM3/9/15
to spar...@googlegroups.com
Hello,

The "Like" condition in Sparksee will match any string value that contains the exact string given as a substring.
You could also use the case insensitive version "LikeNoCase" or a more complex regular expression with "RegExp".

Unfortunately, the text attributes can't be indexed in the current Sparksee version. For the rest of Sparksee attributes the indexing-capabilities of an attribute can be updated later using the Graph#indexAttribute method.

For the second question, you're right, you would need to do two selects and then find the intersection between both results. 

Hope it helps!

Regards,

Spaksee team
Reply all
Reply to author
Forward
0 new messages