I am little bit confused about the parallel running option for solrj. How to
configure the core and what it means exactly. Right now, i create a new core
with Solr admin console. the main requirement is to have a conf folder with
defined solrconfig.xml and data-config.xml. Now, i run my program as
discussed earlier here.

http://lucene.472066.n3.nabble.com/Index-database-with-SolrJ-using-xml-file-directly-throws-an-error-td4426491.html

It works fine. Now, when i want to define the query in my data-config.xml
file to be based on date what i mean exactly...

i have a database for year 2016 with months. i index half of it with
data-config1.xml and other half with data-config2.xml file. can i just run
the solrj programs two times with two seperate xml files and it will index
all of my data to one core. 

String url = "http://localhost:8983/solr/test";; 
            HttpSolrClient server = new HttpSolrClient.Builder(url).build(); 
                ModifiableSolrParams params = new ModifiableSolrParams(); 
                params.set("qt", "/dataimport"); 
                params.set("command", "full-import"); 
                params.set("clean", "true"); 
                params.set("commit", "true"); 
                params.set("optimize", "true"); 
                params.set("config","data-config1.xml"); 
                server.query(params); 

and running this program again as

String url = "http://localhost:8983/solr/test";; 
            HttpSolrClient server = new HttpSolrClient.Builder(url).build(); 
                ModifiableSolrParams params = new ModifiableSolrParams(); 
                params.set("qt", "/dataimport"); 
                params.set("command", "full-import"); 
                params.set("clean", "true"); 
                params.set("commit", "true"); 
                params.set("optimize", "true"); 
                params.set("config","data-config2.xml"); 
                server.query(params); 

Can i run these 2 simultaneously. it will be all indexed on core test? and
query will work all fine. Can someone explain a bit here.

Can i use multi-threading concept of java here, if yes, how? little bit more
elaboration. 

Thanks in adavance!



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

Reply via email to