Advertisement
k-joseph

Untitled

Jun 10th, 2014
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. public void indexPatientData(Integer personId) {
  2. SolrServer solrServer = SolrSingleton.getInstance().getServer();
  3. ModifiableSolrParams params = new ModifiableSolrParams();
  4. //TODO take path from config
  5. params.set("qt", "/csdataimport");
  6. params.set("command", "import");
  7. params.set("clean", false);
  8. params.set("personId", personId);
  9. try {
  10. if (solrServer != null) {
  11. solrServer.query(params);
  12. }
  13. }
  14. catch (SolrServerException ex) {
  15. log.error(String.format("Tried to import patient #%d but failed", personId), ex);
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement