I used the following:
# https://github.com/maxdemarzi/neography/wiki/Schema-indexes
@neo.create_schema_index('Client','bot_client_id')
Where 'Client' is the label and 'bot_client_id" is the key for the index.
But when I want to search on an indexed value, I am required to specify the index.
@neo.get_node_index(index, key, value)
But when I use the get_index I get an array of hashes with no value specified for index:
@neo.get_schema_index('Client')
=> [{"property_keys"=>["bot_client_id"], "label"=>"Client"}]
But what is the index? Or more directly, how can I get the node where bot_client_id is the indexed value by specifying that key and a specific value?
I used the following:
Where 'Client' is the label and 'bot_client_id" is the key for the index.
But when I want to search on an indexed value, I am required to specify the index.
But when I use the
get_indexI get an array of hashes with no value specified forindex:But what is the
index? Or more directly, how can I get the node wherebot_client_idis the indexed value by specifying that key and a specific value?