How to Combine Dismax Query Handler and Clustering Component
Hi, How do we combine clustering component and Dismax query handler? Regards, allahbaksh
Clustering Search taking 4sec for 100 results
Hi, I am using Solr for clustering. I am have set number of row as 100 and I am using clustering handler. The problem is that I am getting the search time for clustering search roughly 4sec. I have set -Xmx1024m. What is the best way to reduce the time. Regards, allahbaksh
Re: Clustering Query Solrj
Hi Erik, I had set the Clustering true at server side. But I want to get the response of Clustering result through solrj. As I get Facet response can I get response of Clustering (docId, and label ) through solrj. Regards, Allahbaksh On Sun, Dec 27, 2009 at 6:58 PM, Erik Hatcher erik.hatc...@gmail.comwrote: On Dec 27, 2009, at 2:20 AM, Allahbaksh Asadullah wrote: How do I set Clustering true in Solrj. How do I access clustering result. I am using Solr 1.4. It isn't a client-side setting, it's a setting when launching Solr. See here for instructions... http://wiki.apache.org/solr/ClusteringComponent Erik -- Allahbaksh Mohammedali Asadullah, Software Engineering Technology Labs, Infosys Technolgies Limited, Electronic City, Hosur Road, Bangalore 560 100, India. (Board: 91-80-28520261 | Extn: 73927 | Direct: 41173927. Fax: 91-80-28520362 | Mobile: 91-9845505322.
Re: Clustering Query Solrj
HI Ahmet, I was looking for the same. Thanks for your early response. Warm Regards, Allahbaksh On Sun, Dec 27, 2009 at 7:22 PM, AHMET ARSLAN iori...@yahoo.com wrote: Hi Erik, I had set the Clustering true at server side. But I want to get the response of Clustering result through solrj. As I get Facet response can I get response of Clustering (docId, and label ) through solrj. By solrJ you mean EmbeddedSolrServer? If yes i think you can enable it by System.setProperty(solr.clustering.enabled, true); as a first line in your main program. Alternatively you can enable by hard coding in solrconfig.xml searchComponent name=clusteringComponent enable=true class=org.apache.solr.handler.clustering.ClusteringComponent I didnt try by myself but to query it by SolrServer you can activate it with qt parameter: ModifiableSolrParams params = new ModifiableSolrParams(); params.set(qt, /clustering); params.set(q, apple); params.set(carrot.title, myTitle); params.set(clustering, true); QueryResponse response = solr.query(params); System.out.println(response = + response); Hope this helps. -- Allahbaksh Mohammedali Asadullah, Software Engineering Technology Labs, Infosys Technolgies Limited, Electronic City, Hosur Road, Bangalore 560 100, India. (Board: 91-80-28520261 | Extn: 73927 | Direct: 41173927. Fax: 91-80-28520362 | Mobile: 91-9845505322.
Clustering Query Solrj
Hi, How do I set Clustering true in Solrj. How do I access clustering result. I am using Solr 1.4. Regards, Allahbaksh
Solr SVN build problem
Hi , I am building Solr from source. During building it from source I am getting following error. generate-maven-artifacts: [mkdir] Created dir: c:\Downloads\solr_trunk\build\maven [mkdir] Created dir: c:\Downloads\solr_trunk\dist\maven [copy] Copying 1 file to c:\Downloads\solr_trunk\build\maven\c:\Downloads\s olr_trunk\src\maven BUILD FAILED c:\Downloads\solr_trunk\build.xml:741: The following error occurred while execut ing this line: c:\Downloads\solr_trunk\common-build.xml:261: Failed to copy c:\Downloads\solr_t runk\src\maven\solr-parent-pom.xml.template to c:\Downloads\solr_trunk\build\mav en\c:\Downloads\solr_trunk\src\maven\solr-parent-pom.xml.template due to java.io .FileNotFoundException c:\Downloads\solr_trunk\build\maven\c:\Downloads\solr_tru nk\src\maven\solr-parent-pom.xml.template (The filename, directory name, or volu me label syntax is incorrect) Regards, Allahbaksh
Solr on Google App Engine
Hi All, Is there any plan to have Solr supported on Google App Engine. I saw a patch for SolrJ submitted by Noble Paul. I think it would be good if we can support Solr on App Engine. Warm Regards, Allahbaksh
Re: Solr Authentication Problem
HI All, As I am using SVN build of solr 1.4 and in it I am not able to find this method. Whether there is some changed in solr1.4 java client api. Thanks in advance Regards, Allahbaksh 2009/6/23 Noble Paul നോബിള് नोब्ळ् noble.p...@corp.aol.com I have raised an issue https://issues.apache.org/jira/browse/SOLR-1238 there is patch attached to the issue. On Mon, Jun 22, 2009 at 1:40 PM, Allahbaksh Asadullah allahbaks...@gmail.com wrote: Hi All, I am facing getting error when I am using Authentication in Solr. I followed Wiki. The error doesnot appear when I searching. Below is the code snippet and the error. Please note I am using Solr 1.4 Development build from SVN. HttpClient client=new HttpClient(); AuthScope scope = new AuthScope(AuthScope.ANY_HOST, AuthScope.ANY_PORT,null, null); client.getState().setCredentials( scope, new UsernamePasswordCredentials(guest, guest) ); SolrServer server =new CommonsHttpSolrServer(http://localhost:8983/solr,client); SolrInputDocument doc1=new SolrInputDocument(); //Add fields to the document doc1.addField(employeeid, 1237); doc1.addField(employeename, Ann); doc1.addField(employeeunit, etc); doc1.addField(employeedoj, 1995-11-31T23:59:59Z); server.add(doc1); Exception in thread main org.apache.solr.client.solrj.SolrServerException: org.apache.commons.httpclient.ProtocolException: Unbuffered entity enclosing request can not be repeated. at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:468) at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:242) at org.apache.solr.client.solrj.request.UpdateRequest.process(UpdateRequest.java:259) at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:63) at test.SolrAuthenticationTest.init(SolrAuthenticationTest.java:49) at test.SolrAuthenticationTest.main(SolrAuthenticationTest.java:113) Caused by: org.apache.commons.httpclient.ProtocolException: Unbuffered entity enclosing request can not be repeated. at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:487) at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323) at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:415) ... 5 more. Thanks and regards, Allahbaksh -- - Noble Paul | Principal Engineer| AOL | http://aol.com -- Allahbaksh Mohammedali Asadullah, Software Engineering Technology Labs, Infosys Technolgies Limited, Electronic City, Hosur Road, Bangalore 560 100, India. (Board: 91-80-28520261 | Extn: 73927 | Direct: 41173927. Fax: 91-80-28520362 | Mobile: 91-9845505322.
Solr Authentication Problem
Hi All, I am facing getting error when I am using Authentication in Solr. I followed Wiki. The error doesnot appear when I searching. Below is the code snippet and the error. Please note I am using Solr 1.4 Development build from SVN. HttpClient client=new HttpClient(); AuthScope scope = new AuthScope(AuthScope.ANY_HOST, AuthScope.ANY_PORT,null, null); client.getState().setCredentials( scope, new UsernamePasswordCredentials(guest, guest) ); SolrServer server =new CommonsHttpSolrServer(http://localhost:8983/solr,client); SolrInputDocument doc1=new SolrInputDocument(); //Add fields to the document doc1.addField(employeeid, 1237); doc1.addField(employeename, Ann); doc1.addField(employeeunit, etc); doc1.addField(employeedoj, 1995-11-31T23:59:59Z); server.add(doc1); Exception in thread main org.apache.solr.client.solrj.SolrServerException: org.apache.commons.httpclient.ProtocolException: Unbuffered entity enclosing request can not be repeated. at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:468) at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:242) at org.apache.solr.client.solrj.request.UpdateRequest.process(UpdateRequest.java:259) at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:63) at test.SolrAuthenticationTest.init(SolrAuthenticationTest.java:49) at test.SolrAuthenticationTest.main(SolrAuthenticationTest.java:113) Caused by: org.apache.commons.httpclient.ProtocolException: Unbuffered entity enclosing request can not be repeated. at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:487) at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323) at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:415) ... 5 more. Thanks and regards, Allahbaksh
Re: Solr Authentication Problem
Hi All, I am facing getting error when I am using Authentication in Solr. I followed Wiki. The error doesnot appear when I searching. Below is the code snippet and the error. Please note I am using Solr 1.4 Development build from SVN. HttpClient client=new HttpClient(); AuthScope scope = new AuthScope(AuthScope.ANY_HOST, AuthScope.ANY_PORT,null, null); client.getState().setCredentials( scope, new UsernamePasswordCredentials(guest, guest) ); SolrServer server =new CommonsHttpSolrServer(http://localhost:8983/solr,client); SolrInputDocument doc1=new SolrInputDocument(); //Add fields to the document doc1.addField(employeeid, 1237); doc1.addField(employeename, Ann); doc1.addField(employeeunit, etc); doc1.addField(employeedoj, 1995-11-31T23:59:59Z); server.add(doc1); Exception in thread main org.apache.solr.client.solrj.SolrServerException: org.apache.commons.httpclient.ProtocolException: Unbuffered entity enclosing request can not be repeated. at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:468) at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:242) at org.apache.solr.client.solrj.request.UpdateRequest.process(UpdateRequest.java:259) at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:63) at test.SolrAuthenticationTest.init(SolrAuthenticationTest.java:49) at test.SolrAuthenticationTest.main(SolrAuthenticationTest.java:113) Caused by: org.apache.commons.httpclient.ProtocolException: Unbuffered entity enclosing request can not be repeated. at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:487) at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323) at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:415) ... 5 more. Thanks and regards, Allahbaksh
clustering SOLR-769
Hi, I built Solr from SVN today morning. I am using Clustering example. I have added my own schema.xml. The problem is the even though I change carrot.snippet field from features to filecontent the clustering results are not changed a bit. Please note features field is also there in my document. str name=carrot.titlename/str !-- The field to cluster on -- str name=carrot.snippetfeatures/str str name=carrot.urlid/str Why I get the same cluster even though I have changed the carrot.snippet. Whether there is some problem with my understarnding? Regards, allahbaksh
Re: clustering SOLR-769
Hi, I will try this. Because when I tried it with field declared by me there was no change. Will check out this and let you know. Is it possbile to specify more than one snippet field or should I use copy field to copy copy two or three field into single field and specify it in snippet field. Regards, Allahbaksh On Fri, May 22, 2009 at 2:24 AM, Stanislaw Osinski stanis...@osinski.namewrote: Hi. I built Solr from SVN today morning. I am using Clustering example. I have added my own schema.xml. The problem is the even though I change carrot.snippet field from features to filecontent the clustering results are not changed a bit. Please note features field is also there in my document. str name=carrot.titlename/str !-- The field to cluster on -- str name=carrot.snippetfeatures/str str name=carrot.urlid/str Why I get the same cluster even though I have changed the carrot.snippet. Whether there is some problem with my understarnding? If you get back to the clustering dir in examples and change str name=carrot.snippetfeatures/str to str name=carrot.snippetmanu/str do you see any change in clusters? Cheers, Staszek -- http://carrot2.org -- Allahbaksh Mohammedali Asadullah, Software Engineering Technology Labs, Infosys Technolgies Limited, Electronic City, Hosur Road, Bangalore 560 100, India. (Board: 91-80-28520261 | Extn: 73927 | Direct: 41173927. Fax: 91-80-28520362 | Mobile: 91-9845505322.
Re: Lucene/Solr Meetup / May 20th, Reston VA, 6-8:30 pm
Dear Erik, It would be great if you can upload the presentation online. It would help all of us. And if possible video too. Warm Regards, Allahbaksh On Tue, May 5, 2009 at 11:40 PM, Lukáš Vlček lukas.vl...@gmail.com wrote: Hello,any plans to upload these presentations on the web (or even better release video recordings)? Lukas On Tue, May 5, 2009 at 6:49 PM, Erik Hatcher e...@ehatchersolutions.com wrote: Lucene/Solr Meetup / May 20th, Reston VA, 6-8:30 pm http://www.meetup.com/NOVA-Lucene-Solr-Meetup/ Join us for an evening of presentations and discussion on Lucene/Solr, the Apache Open Source Search Engine/Platform, featuring: Erik Hatcher, Lucid Imagination, Apache Lucene/Solr PMC: Solr power your data: How to get up an running in 20 minutes or less Ryan McKinley: Apache Lucene/Solr PMC: Geo Search with Solr and Voyager Dan Chudnov, Library of Congress: The World Digital Library -- Solr searches across time and space Aaron McCurry, Near Infinity: Using Lucene as primary store for structured data store that horizontally scales to billions of records 4 presentations, followed by QA / panel discussion. We'll have some food and beverages. RSVP -- seats are limited -- at http://www.meetup.com/NOVA-Lucene-Solr-Meetup/ Hosted by: Near Infinity Sponsored by: Lucid Imagination Questions: ta...@lucidimagination.co -- http://blog.lukas-vlcek.com/ -- Allahbaksh Mohammedali Asadullah, Software Engineering Technology Labs, Infosys Technolgies Limited, Electronic City, Hosur Road, Bangalore 560 100, India. (Board: 91-80-28520261 | Extn: 73927 | Direct: 41173927. Fax: 91-80-28520362 | Mobile: 91-9845505322.
Re: Authenticated Indexing Not working
Hi, My error is as below. If authentication error while indexing with authentication enable (Basic GET/POST) org.apache.solr.client.solrj.SolrServerException: org.apache.commons.httpclient.ProtocolException: Unbuffered entity enclosing request can not be repeated. at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:470) at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:242) at org.apache.solr.client.solrj.request.UpdateRequest.process(UpdateRequest.java:259) at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:48) at com.infy.icode.SolrAuthenticationTest.index(SolrAuthenticationTest.java:84) http://blog.comtaste.com/2009/02/securing_your_solr_server_on_t.html If I am indexing without authentication it works fine. I followed procedure listed in above blog. Regards, Allahbaksh On Wed, Apr 29, 2009 at 9:44 PM, Allahbaksh Asadullah allahbaks...@gmail.com wrote: Hi, I followed the procedure given at http://blog.comtaste.com/2009/02/securing_your_solr_server_on_t.html Regards, Allahbaksh On 4/28/09, Shalin Shekhar Mangar shalinman...@gmail.com wrote: On Sun, Apr 26, 2009 at 11:04 AM, Allahbaksh Asadullah allahbaks...@gmail.com wrote: HI Otis, I am using HTTPClient for authentication. When I use the server with Authentication for searching it works fine. But when I use it for indexing it throws error. What is the error? Is it thrown by Solr or your servlet container? One difference between a search request and update request with Solrj is that a search request uses HTTP GET by default but an update request uses an HTTP POST by default. Perhaps your authentication scheme is not configured correctly for POST requests? -- Regards, Shalin Shekhar Mangar. -- Allahbaksh Mohammedali Asadullah, Software Engineering Technology Labs, Infosys Technolgies Limited, Electronic City, Hosur Road, Bangalore 560 100, India. (Board: 91-80-28520261 | Extn: 73927 | Direct: 41173927. Fax: 91-80-28520362 | Mobile: 91-9845505322. -- Allahbaksh Mohammedali Asadullah, Software Engineering Technology Labs, Infosys Technolgies Limited, Electronic City, Hosur Road, Bangalore 560 100, India. (Board: 91-80-28520261 | Extn: 73927 | Direct: 41173927. Fax: 91-80-28520362 | Mobile: 91-9845505322.
Re: Authenticated Indexing Not working
Hi, I followed the procedure given at http://blog.comtaste.com/2009/02/securing_your_solr_server_on_t.html Regards, Allahbaksh On 4/28/09, Shalin Shekhar Mangar shalinman...@gmail.com wrote: On Sun, Apr 26, 2009 at 11:04 AM, Allahbaksh Asadullah allahbaks...@gmail.com wrote: HI Otis, I am using HTTPClient for authentication. When I use the server with Authentication for searching it works fine. But when I use it for indexing it throws error. What is the error? Is it thrown by Solr or your servlet container? One difference between a search request and update request with Solrj is that a search request uses HTTP GET by default but an update request uses an HTTP POST by default. Perhaps your authentication scheme is not configured correctly for POST requests? -- Regards, Shalin Shekhar Mangar. -- Allahbaksh Mohammedali Asadullah, Software Engineering Technology Labs, Infosys Technolgies Limited, Electronic City, Hosur Road, Bangalore 560 100, India. (Board: 91-80-28520261 | Extn: 73927 | Direct: 41173927. Fax: 91-80-28520362 | Mobile: 91-9845505322.
Authenticated Indexing Not working
Hi, I have configured basic authentication in Solr using web.xml. It is working fine when I search using SolrJ. But when I try to index with Authentication enabled using SolrJ it is throwing exception. Is secured indexing is not enabled? How I am suppose to use secured indexing. Regards, Allahbaksh
Re: Authenticated Indexing Not working
HI Otis, I am using HTTPClient for authentication. When I use the server with Authentication for searching it works fine. But when I use it for indexing it throws error. Regards, Allahbaksh On 4/25/09, Otis Gospodnetic otis_gospodne...@yahoo.com wrote: My guess is you could provide the credentials to the underlying HttpClient (used by SolrJ), and let it do the authentication. I don't have the API handy, sorry. But this may slow things down and I have to wonder if you really really need authentication there or whether using HTTP authentication is the best way to do it. Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch - Original Message From: Allahbaksh Asadullah allahbaks...@gmail.com To: solr-user@lucene.apache.org Sent: Saturday, April 25, 2009 9:31:35 AM Subject: Authenticated Indexing Not working Hi, I have configured basic authentication in Solr using web.xml. It is working fine when I search using SolrJ. But when I try to index with Authentication enabled using SolrJ it is throwing exception. Is secured indexing is not enabled? How I am suppose to use secured indexing. Regards, Allahbaksh -- Allahbaksh Mohammedali Asadullah, Software Engineering Technology Labs, Infosys Technolgies Limited, Electronic City, Hosur Road, Bangalore 560 100, India. (Board: 91-80-28520261 | Extn: 73927 | Direct: 41173927. Fax: 91-80-28520362 | Mobile: 91-9845505322.
Re: Customizing solr with my lucene
Just check your schema.xmlRegards, Allahbaksh On Fri, Apr 17, 2009 at 7:56 PM, mirage1987 mirage1...@gmail.com wrote: Hey Erik, I also checked the index using luke and the index shows that the terms are indexed as they should have been. So that implies that something is wrong with the querying only and the results are not getting retrieved.(As i said earlier even the parsed query is the way it should be according to the changes i have made to lucene.) Any ideas you have on this. Why this could be happening. One more thing... tried to query the solr index using luke ...but still no resultsmay be the index is not stored correctlycould it be changes in the lucene api???should i revert to an older version of solr??? -- View this message in context: http://www.nabble.com/Customizing-solr-with-my-lucene-tp23038007p23098700.html Sent from the Solr - User mailing list archive at Nabble.com. -- Allahbaksh Mohammedali Asadullah, Software Engineering Technology Labs, Infosys Technolgies Limited, Electronic City, Hosur Road, Bangalore 560 100, India. (Board: 91-80-28520261 | Extn: 73927 | Direct: 41173927. Fax: 91-80-28520362 | Mobile: 91-9845505322.
Testing
HI,I am just testing whether the mails sent to me are send to user groups or not. Regards, Allahbaksh -- Allahbaksh Mohammedali Asadullah, Software Engineering Technology Labs, Infosys Technolgies Limited, Electronic City, Hosur Road, Bangalore 560 100, India. (Board: 91-80-28520261 | Extn: 73927 | Direct: 41173927. Fax: 91-80-28520362 | Mobile: 91-9845505322.
Mails are not getting reflected in user group
HI Noble,I am sending many mails to the sol-user group but they are not getting displayed in mailing list. I am able to receive the emails from user's group but not able to send any mail to user group. I had sent a mail to the sol-owner too but there is no reply from it. Is there any specific reason. Do you know what may be the problem. Regards, Allahbaksh
Re: Authentication Error
Hi Noble. Thank you very much. I will download the latest solr nightly build. Please note this is the another problem which I think is bug. I am trying out load balancing feature in Solr 1.4 using LBHTTPSolrServer. Below is setup I have three solr server. A, B and C. Now the problem is if I make first two solr server (Note I have specified A, B, C in order) i.e A and B down then it throws and exception. It does not check it with server C. Though the server C is still active. In short the if only last server specified in the constructor is active then I get a Exception and query doesnot get fired. Is it a bug or what may be the exact problem. Regards, Allahbaksh 2009/4/17 Noble Paul നോബിള് नोब्ळ् noble.p...@gmail.com It is fixed in the trunk On Thu, Apr 16, 2009 at 10:47 PM, Allahbaksh Asadullah allahbaks...@gmail.com wrote: Thanks Noble.Regards, Allahbaksh 2009/4/16 Noble Paul നോബിള് नोब्ळ् noble.p...@gmail.com On Thu, Apr 16, 2009 at 10:34 PM, Allahbaksh Asadullah allahbaks...@gmail.com wrote: Hi,I have followed the procedure given on this blog to setup the solr Below is my code. I am trying to index the data but I am not able to connect to server and getting authentication error. HttpClient client=new HttpClient(); client.getState().setCredentials(new AuthScope(localhost, 80, AuthScope.ANY_SCHEME), new UsernamePasswordCredentials(admin, admin)); Can you please let me know what may be the problem. The other problem which I am facing is using Load Banlancing SolrServer lbHttpSolrServer = new LBHttpSolrServer( http://localhost:8080/solr,http://localhost:8983/solr;); Now the problem is the first server is down then I will get an error. If I swap the server in constructor by giving port 8983 server as first and 8080 as second it works fine. The thing Problem is If only the last server which is set is active and the rest of other are down then Solr throws and exception and search is not performed. I shall write a testcase and let you know Regards, Allahbaksh -- --Noble Paul -- Allahbaksh Mohammedali Asadullah, Software Engineering Technology Labs, Infosys Technolgies Limited, Electronic City, Hosur Road, Bangalore 560 100, India. (Board: 91-80-28520261 | Extn: 73927 | Direct: 41173927. Fax: 91-80-28520362 | Mobile: 91-9845505322. -- --Noble Paul -- Allahbaksh Mohammedali Asadullah, Software Engineering Technology Labs, Infosys Technolgies Limited, Electronic City, Hosur Road, Bangalore 560 100, India. (Board: 91-80-28520261 | Extn: 73927 | Direct: 41173927. Fax: 91-80-28520362 | Mobile: 91-9845505322.
Authentication Error
Hi,I have followed the procedure given on this blog to setup the solr Below is my code. I am trying to index the data but I am not able to connect to server and getting authentication error. HttpClient client=new HttpClient(); client.getState().setCredentials(new AuthScope(localhost, 80, AuthScope.ANY_SCHEME), new UsernamePasswordCredentials(admin, admin)); Can you please let me know what may be the problem. The other problem which I am facing is using Load Banlancing SolrServer lbHttpSolrServer = new LBHttpSolrServer( http://localhost:8080/solr,http://localhost:8983/solr;); Now the problem is the first server is down then I will get an error. If I swap the server in constructor by giving port 8983 server as first and 8080 as second it works fine. The thing Problem is If only the last server which is set is active and the rest of other are down then Solr throws and exception and search is not performed. Regards, Allahbaksh