Modify data-conf.xml on the runtime

2018-04-11 Thread rameshkjes
Hi, 

I am doing configuration of solr with the xml and pdf dataset, it works
perfect. But, I want to modify few things: 
Such as, we can see below, "baseDir" and "filePrefix" is being defined
manually. I want this to be defined on the runtime. Consider that I have GUI
and user is specifying the directories for datasets. So, I have separate
java file that does this job. But, I don't know how to use data of that
class to configure "baseDir" and "filePrefix". Could anyone help me that how
can i access that data from java class and fill in the data-conf.xml.

These are few fields of my data-conf.xml file. 

 

 
 



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html


Modify data-conf.xml on the runtime

2018-04-11 Thread rameshkjes
Hi, 

I am doing configuration of solr with the xml and pdf dataset, it works
perfect. But, I want to modify few things: 
Such as, we can see below, "baseDir" and "filePrefix" is being defined
manually. I want this to be defined on the runtime. Consider that I have GUI
and user is specifying the directories for datasets. So, I have separate
java file that does this job. But, I don't know how to use data of that
class to configure "baseDir" and "filePrefix". Could anyone help me that how
can i access that data from java class and fill in the data-conf.xml.

These are few fields of my data-conf.xml file. 

 

 
 



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html


Re: Modify data-conf.xml on the runtime

2018-04-13 Thread rameshkjes
How data will be imported using dih, if path of data is not provided? What I
want is to provide the link of dataset files during runtime. 



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html


Re: Modify data-conf.xml on the runtime

2018-04-13 Thread rameshkjes
I am using datasource as "FileDataSource", how can i grab that information
from url?  



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html


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: D:\software\solr-7.2.0\solr-7.2.0\bin 

" /solr.cmd -s "C:\Users\lucky\github\myproject\solr-config"/  "  

After that I access to " /http://localhost:8983/solr// "  

and select the name of core which is "demo" 

and then I select/ dataimport/ tab and "/execute/" to import documents. 

First thing what i tried is to run the solr server using Java program, which
I am unable to do. Could anyone please with that? 

I am using Solr 7.2.0

Thanks 



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html


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: Modify data-conf.xml on the runtime

2018-04-25 Thread rameshkjes
Actually I am trying to approach this problem from another way. 
I am taking user input from gui which is direcotory of dataset, and saving
that path in properties file. Since I am using Maven, so I am able to access
that path in my pom file using properties tag. So, now is it possible to use
that properties variable from pom.xml to the data-conf.xml? do you think, it
is right way? 



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html