Re: Run solr server using Java program

2018-04-21 Thread TK Solr
The solr.cmd starts Solr by running java -jar start.jar, which has the MANIFEST file that tells the java command that it's main class is org.eclipse.jetty.start.Main. So, I would think your Java program should be able to start Solr (jetty, really) by calling

Re: Run solr server using Java program

2018-04-20 Thread Shawn Heisey
On 4/20/2018 6:01 AM, rameshkjes wrote: Using solrJ, I am able to access the solr core. But still I need to go to command prompt to execute command for solr instance. Is there way to do that? I saw that you entered the IRC channel previouslyand asked the same question, but I got no response

Re: Run solr server using Java program

2018-04-20 Thread Alessandro Benedetti
To do what? If you mean to start a Solr Server instance, you have the solr.sh ( or the windows starter). You can set up your automation stack to be able to startup Solr one click. SolrJ is a client which means you need Solr up and running. Cheers On Fri, 20 Apr 2018, 16:51 rameshkjes,

Re: Run solr server using Java program

2018-04-20 Thread rameshkjes
Using solrJ, I am able to access the solr core. But still I need to go to command prompt to execute command for solr instance. Is there way to do that? -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Re: Run solr server using Java program

2018-04-20 Thread Alessandro Benedetti
There are various client API to use Apache Solr[1], in your case what you need is SolrJ[2] . Cheers [1] https://lucene.apache.org/solr/guide/7_3/client-apis.html [2] https://lucene.apache.org/solr/guide/7_3/using-solrj.html#using-solrj - --- Alessandro Benedetti Search

Run solr server using Java program

2018-04-18 Thread rameshkjes
Hi guys, I am able to run the solr instance, add the core and import the data manually. But I want to do everything with the help of Java program, I searched a lot but did not find any relevant answer. In order to run the solr server, i execute following command inside directory: