Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void indexPatientData(Integer personId) {
- SolrServer solrServer = SolrSingleton.getInstance().getServer();
- ModifiableSolrParams params = new ModifiableSolrParams();
- //TODO take path from config
- params.set("qt", "/csdataimport");
- params.set("command", "import");
- params.set("clean", false);
- params.set("personId", personId);
- try {
- if (solrServer != null) {
- solrServer.query(params);
- }
- }
- catch (SolrServerException ex) {
- log.error(String.format("Tried to import patient #%d but failed", personId), ex);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement