-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Indexing of Properties with array values #76
Comments
@arpitjoshi If I'm right, you have totell neo4j to index each value of the array separatly. Then it should work :) @jadell What about handling |
That should just work. Only the method docblocks say it should be a string -- that is already incorrect since it could be an int, float, or boolean. Technically, it can be any scalar value or a 0-indexed array of all the same type. |
Ok it's just because I've got a php notice. Also I'm pretty sure the query doesn't return anything if I don't specifically add each value of the array in the index. I'm off the office until next week. On Monday, I'll give it another try just to be sure and post the notice here. |
Hi @jadell, Here is the notice when I try to index a property which is an array of strings:
About the query, I have a node with a property If I add the property as it in the index (i.e, the whole array of strings), the following query returns 0 row
If I add each value of the array in the index, the query returns 1 row. Which is what I expect here, and seems to be how neo4j handle array properties. Can you tell me if I'm wrong and how I can make it work? Cheers :) |
So how to write this in php..?? If I do this.. $arr = array(123, 456, 789); foreach($arr as $key){ In this case final value of tags will be 789..But it should be [123,456,789].. |
I am creating node with one of the property with array values and trying to index that property. Trying to search nodes using index for some value, but gives zero result.
Attaching the screenshot of my PHP code.
Now Cypher Query:
START root=node:tags_index(tags='Yoga')
RETURN root.name, root.id, root.tags
Returns zero result.
The string array values of tags are not indexed separately.
looking at this url http://grokbase.com/t/gg/neo4j..., It says array values are saved as individual values to the same key.
But this is not happening using PHP Everyman client, is there some issue with Everyman library.
The text was updated successfully, but these errors were encountered: