Skip to content

what is the index name when I create a schema index? #213

@angelacode

Description

@angelacode

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions