-
Notifications
You must be signed in to change notification settings - Fork 1
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
fix: project support #58
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Thanks for the review ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great !
@@ -366,7 +366,7 @@ protected org.icij.datashare.Objects.IncrementalImportResponse importDocuments( | |||
checkExtensionProject(projectId); | |||
checkNeo4jAppStarted(); | |||
String db = neo4jProjectDatabase(projectId); | |||
return client.importDocuments(db, request); | |||
return client.importDocuments(db, projectId, request); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just for info, you change here your semantic from index to projectId. As far as I saw, there is no mention of projectId elsewhere
PR description
While multiple project had been properly added on the
neo4j
side in #37, the extension was still setup to use a single index on the ES side and hence was not properly configuredfor a server usage. This PR adds a proper support of multiproject on the ES side.Changes
datashare-neo4j-extension/src
Changed
index
alongside the projectdatabase
inimportNamedEntities
,importDocuments
andexportNeo4jCSVs
datashare-neo4j-extension/neo4j-app
Remove
AppConfig.neo4j_project
attributeChanged
ESClient.project_index
attribute, the ES client now takes the index as method argumentsPOST /neo4j-csvs
,POST /documents
,POST /named-entities
and underlyingneo4j.core.import
functions to take the ES index as input