Following reference documentation here there is the code to update a spatial index after node insert
final CloseableHttpClient httpClient = HttpClients.createDefault();
@Bean
ApplicationListener<AfterSaveEvent> afterSaveEventApplicationListener() {
return new ApplicationListener<AfterSaveEvent>() {
@Override
public void onApplicationEvent(AfterSaveEvent event) {
Neo4jRequest<String> neo4jRequest = new DefaultRequest(httpClient);
if(event.getEntity() instanceof Person) {
Person person = (Person) event.getEntity();
//Construct the JSON statements
neo4jRequest.execute(endpoint,json);
}
}
};
}
the problem si: where is Neo4JRequest interface ? it seems dissappeared from the package leaving no trace on the why and how.
does anybody have the same issue with index updating?
thanks