Skip to content

Commit

Permalink
Merge pull request #584 from nawroth/shelldocs
Browse files Browse the repository at this point in the history
Added -t option to shell index docs + some formatting.
  • Loading branch information
Peter Neubauer committed Jun 11, 2012
2 parents c8f09ec + 5e768a9 commit 4128de4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions shell/src/docs/dev/shell.txt
Expand Up @@ -240,12 +240,13 @@ You can use Cypher to query the graph. For that, use the +start+ command.
It's possible to query and manipulate indexes via the index command.
Example: +index -i persons name+ (will index the name for the current node or relationship in the "persons" index).

* +-g+ will do exact lookup in the index and display hits. You can supply -c with a command to be executed for each hit.
* +-q+ will ask the index a query and display hits. You can supply -c with a command to be executed for each hit.
* +--cd+ will change current location to the hit from the query. It's just a convenience for using the -c option.
* +--ls+ will do a listing of the contents for each hit. It's just a convenience for using the -c option.
* +-g+ will do exact lookup in the index and display hits. You can supply +-c+ with a command to be executed for each hit.
* +-q+ will ask the index a query and display hits. You can supply +-c+ with a command to be executed for each hit.
* +--cd+ will change current location to the hit from the query. It's just a convenience for using the +-c+ option.
* +--ls+ will do a listing of the contents for each hit. It's just a convenience for using the +-c+ option.
* +-i+ will index a key-value pair in an index for the current node/relationship. If no value is given the property value for that key for the current node is used as value.
* +-r+ will remove a key-value pair (if it exists) from an index for the current node/relationship. Key and value is optional.
* +-r+ will remove a key-value pair (if it exists) from an index for the current node/relationship. Key and value is optional.
* +-t+ will set the index type to work with, for example `index -t Relationship --delete friends` will delete the +friends+ relationship index.

=== Transactions ===
It is useful to be able to test changes, and then being able to commit or rollback said changes.
Expand Down

0 comments on commit 4128de4

Please sign in to comment.