Showing
1 changed file
with
4 additions
and
0 deletions
... | @@ -5,9 +5,13 @@ import org.apache.solr.client.solrj.impl.HttpSolrClient; | ... | @@ -5,9 +5,13 @@ import org.apache.solr.client.solrj.impl.HttpSolrClient; |
5 | 5 | ||
6 | import javax.enterprise.inject.Produces; | 6 | import javax.enterprise.inject.Produces; |
7 | 7 | ||
8 | +/* | ||
9 | + Classe de configuration pour SolrJ | ||
10 | + */ | ||
8 | public class SolrJConfiguration { | 11 | public class SolrJConfiguration { |
9 | 12 | ||
10 | @Produces | 13 | @Produces |
14 | + /* SolrClient injectable pour les classes en ayant besoin */ | ||
11 | public SolrClient createSolrClient() { | 15 | public SolrClient createSolrClient() { |
12 | return new HttpSolrClient.Builder("http://localhost:8983/solr/publishers").build(); | 16 | return new HttpSolrClient.Builder("http://localhost:8983/solr/publishers").build(); |
13 | } | 17 | } | ... | ... |
-
Please register or login to post a comment