Re: Dynamic creation of cores for this use case.
Hi, Thanks sujatha for your response. I tried to create the core as per the blog url that you gave. But in that mkdir -p /etc/solr/conf/$name/conf cp -a /etc/solr/conftemplate/* /etc/solr/conf/$name/conf/ sed -i s/CORENAME/$name/ /etc/solr/conf/$name/conf/solrconfig.xml curl http://localhost:8080/solr/admin/cores?action=CREATEname=$nameinstanceDir=/etc/solr/conf/$name; I didnt understand the sed command what they are trying to do. I searched the solrconfig file for replacing the corename , but there is no CORENAME in it. Please let me know what are the configuration changes that i need to do for a single core . Thanks Prabhakaran. P -- View this message in context: http://lucene.472066.n3.nabble.com/Dynamic-creation-of-cores-for-this-use-case-tp3937696p3976507.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Dynamic creation of cores for this use case.
Hi sujatha, Basically i just want to explain the use case . The use case is described below, 1. Create a VM running solr, with one core per customer 2. Index all of each customer's data (config text, metadata, etc) into a single core 3. Create one fake partner per 30 customers(a seperate column as partner_id in the database table) 4. Index all 30 customer's data into the partners view 5. Build a simple search page on top of the system that allows users to 6. Switch between customer or partner ID's 7. Search various strings 8. Receive the output from SOLR 9. With the goal of understanding 10. How many solr cores can we run per VM? 11. What's the load during indexing? 12. Invalidate and rebuild? 13. If we run multiple concurrent queries, how badly does it impact performance? I am trying to create second one . Please help on the same Thanks -- View this message in context: http://lucene.472066.n3.nabble.com/Dynamic-creation-of-cores-for-this-use-case-tp3937696p3976594.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Dynamic creation of cores for this use case.
Hi, I tried to create core by simply hitting the below url http://localhost:8983/solr/admin/cores?action=CREATEname=core3instanceDir=C://solrconfig=solrconfig.xmlschema=schema.xmldataDir=C://solr/data It made a entry in the solr.xml file . but the core directory is not created. Please let me know what might be the issue ? -- View this message in context: http://lucene.472066.n3.nabble.com/Dynamic-creation-of-cores-for-this-use-case-tp3937696p3973300.html Sent from the Solr - User mailing list archive at Nabble.com.
Configuration steps to create dynamic core
Hi, I am trying to create core dynamically. what are the configuration steps that needs to be followed to do the same. Please let me know if you have any idea on that Thanks Prabhakarn.P -- View this message in context: http://lucene.472066.n3.nabble.com/Configuration-steps-to-create-dynamic-core-tp3973395.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Configuration steps to create dynamic core
Hi Dave, I tried to create core programmatically as below. But getting following error. CoreAdminResponse statusResponse = CoreAdminRequest.getStatus(indexName, solr); coreExists = statusResponse.getCoreStatus(indexName).size() 0; System.out.println(got the coreexists--+coreExists); if(!coreExists) { // Create the core CoreAdminRequest.Create create = new CoreAdminRequest.Create(); create.setCoreName(indexName+i); create.setInstanceDir(C://apache-solr-1.4.1/example/multicore/+indexName+i); System.out.println(inside the multicore process); create.setDataDir(indexName+i); create.process(solr); System.out.println(created the multicore); } error below: Caused by: java.lang.RuntimeException: Can't find resource 'solrconfig.xml' in c lasspath or 'C:\apache-solr-1.4.1\example\multicore\testcore0\conf/', cwd=C:\apach e-solr-1.4.1\example at org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoad er.java:262) at org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader .java:230) at org.apache.solr.core.Config.init(Config.java:101) at org.apache.solr.core.SolrConfig.init(SolrConfig.java:130) at org.apache.solr.core.CoreContainer.create(CoreContainer.java:405) at org.apache.solr.handler.admin.CoreAdminHandler.handleCreateAction(Cor eAdminHandler.java:245) ... 21 more May 9, 2012 2:15:10 PM org.apache.solr.core.SolrResourceLoader init Please help me. -- View this message in context: http://lucene.472066.n3.nabble.com/Configuration-steps-to-create-dynamic-core-tp3973395p3973549.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Configuration steps to create dynamic core
Hi I tried to create cores dynamically using the below code, CoreAdminResponse statusResponse = CoreAdminRequest.getStatus(indexName, solr); coreExists = statusResponse.getCoreStatus(indexName).size() 0; System.out.println(got the coreexists--+coreExists); if(!coreExists) { // Create the core CoreAdminRequest.Create create = new CoreAdminRequest.Create(); create.setCoreName(indexName+i); create.setInstanceDir(C://solr/); System.out.println(inside the multicore process); create.setDataDir(C://solr/data); //create.setConfigName(solrconfig); //create.setSchemaName(schema); create.process(solr); System.out.println(created the multicore); } It makes an entry in the solr.xml file , but the core folder is not created. Please help me to solve this issue. -- View this message in context: http://lucene.472066.n3.nabble.com/Configuration-steps-to-create-dynamic-core-tp3973395p3973604.html Sent from the Solr - User mailing list archive at Nabble.com.
How to create cores for each customers.
Hi , I have a requirement to create cores for each customers. I tried creating cores using the below code CoreAdminRequest.Create create = new CoreAdminRequest.Create(); CoreAdminRequest.createCore(indexName+i, C://solr/, solr); It created the core , but I need to put each customers( where user_id = 'a') indexes into each core . can anyone please help me on this ? Thanks Prabhakaran.P -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-create-cores-for-each-customers-tp3973681.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Dynamic creation of cores for this use case.
Thanks kuli, for your response. We tried to implement as per the instruction. But the problem again is how to create index for every thirty customers sepertaley. is there any programmatic way out to do or do we need to create query in configuration file. Thanks Prabakarab.P -- View this message in context: http://lucene.472066.n3.nabble.com/Dynamic-creation-of-cores-for-this-use-case-tp3937696p3950352.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Dynamic creation of cores for this use case.
Hi, Thanks Erick for your response . Actually , the total no of customers is 4500 and every group of customers say 30 is a considered to be a partner or agent. The use case is to create a core for each customer as well as partner . Since its very difficult to create cores statically in solr.xml file for all 4500 customers , is there any way to create the cores dynamically or on the fly. Actually we are implementing solr in our application that is live now , in the application customers or partners around the world will login and search there devices. So , our manager wants us to do a small poc on how solr will fit into the application. I am very much depressed on this use case as it took more than the deadline . So, please help me on this regards. Thanks -- View this message in context: http://lucene.472066.n3.nabble.com/Dynamic-creation-of-cores-for-this-use-case-tp3937696p3941433.html Sent from the Solr - User mailing list archive at Nabble.com.
Dynamic creation of cores for this use case.
Hi everyone , I am new to solr. I have a use case which describes as below, I have a use case to create cores based on customers and partners. There are about 2500 customers each customers having on an average of 1 devices. The partner is a group of customers say 30 . So , we have customer column and partner column. So, the use case is to 1. Create a VM running solr, with one core per customer. 2. Index all of each customer's data (device info , config text, metadata, etc) into a single core. 3. Index all 30 customer's data into the partners view after creating parnter per 30 customer. Can any one please help me on this case ? Thanks Prabhakaran. P -- View this message in context: http://lucene.472066.n3.nabble.com/Dynamic-creation-of-cores-for-this-use-case-tp3937696p3937696.html Sent from the Solr - User mailing list archive at Nabble.com.