Skip to content

Commit

Permalink
Merge pull request #70 from EBISPOT/dev
Browse files Browse the repository at this point in the history
fix unnecessary running thread when building indexes
  • Loading branch information
serjoshua authored Apr 19, 2023
2 parents 6ed1b77 + 060c8f2 commit 07b5321
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,18 @@ public class SolrIndexer implements CommandLineRunner {
SolrClient solrClient() {
return new HttpSolrClient(environment.getProperty("spring.data.solr.host"));
}

@Bean
public SolrTemplate solrTemplate() {
return new SolrTemplate(solrClient(), "mapping");
}

@Override
public void run(String... strings) throws Exception {
termService.rebuildIndexes();
}

public static void main(String[] args) throws Exception {
SpringApplication.run(SolrIndexer.class, args);
SpringApplication.exit(SpringApplication.run(SolrIndexer.class, args));
}
}

0 comments on commit 07b5321

Please sign in to comment.