Skip to content

Commit

Permalink
Remove the additional step of creating the indexes (guacsec#188)
Browse files Browse the repository at this point in the history
Now the index is created by `guacone` so it should be handled by the
next step already.

Signed-off-by: Mihai Maruseac <[email protected]>

Signed-off-by: Mihai Maruseac <[email protected]>
  • Loading branch information
mihaimaruseac authored Oct 25, 2022
1 parent cc1dde9 commit 33fbace
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,29 +53,9 @@ To login, use the credentials set above: `neo4j/s3cr3t`.
The environment variables containing `*apoc*` are needed to enable the [apoc]
Neo4j stored procedures add-on which can be used for more advanced queries.

### Create Neo4j DB Index

With the Neo4j Console, you want to first create the indexes before ingesting
the data. This can be done through running the following query:

```
CREATE INDEX IF NOT EXISTS FOR (n:Artifact) on n.digest;
CREATE INDEX IF NOT EXISTS FOR (n:Artifact) on n.name;
CREATE INDEX IF NOT EXISTS FOR (n:Package) on n.purl;
CREATE INDEX IF NOT EXISTS FOR (n:Package) on n.name;
CREATE INDEX IF NOT EXISTS FOR (n:Metadata) on n.id;
CREATE INDEX IF NOT EXISTS FOR (n:Attestation) on n.digest;
```

You can validate the the indices have been created by using the command:

```
:schema
```

## Ingesting the data

To ingest the data, we will use the help of the guacone binary, which is an
To ingest the data, we will use the help of the `guacone` binary, which is an
all-in-one utility that can take a collection of files and ingest them into
the neo4j database.

Expand Down

0 comments on commit 33fbace

Please sign in to comment.