Solr Suggest does not work in solrcloud environment
Hi Guys I am having difficulties running a suggest Search Handler in a solrcloud environment. The configuration was tested on a standalone machine and works fine there. Here is my configuration: *Schema.xml* ... *Solrconfig.xml* suggest_text suggest org.apache.solr.spelling.suggest.Suggester org.apache.solr.spelling.suggest.tst.TSTLookup suggest 0 true default suggest solr.DirectSolrSpellChecker internal 0.2 2 1 50 2 0.01 wordbreak solr.WordBreakSolrSpellChecker suggest true true 10 true default wordbreak suggest true 10 true suggest As soon as I post a query on http://url.com:8983/solr/mycore/suggest?q=bar&wt=json I get an empty answer {"responseHeader":{"status":0,"QTime":0}} No errors or warnings in the log. Any ideas? Simon -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-Suggest-does-not-work-in-solrcloud-environment-tp4071587.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Solr Suggest does not work in solrcloud environment
Hi Aloke Thanks for your reply. It works with the http://url.com:8983/solr/mycore/suggest?q=bar&wt=json&distrib=true parameter or when inserted into the defaults true default suggest false 10 true false suggest I use the bootstrap parameter at startup. So configuration is deployed to all other servers. The query component just creates additional output but nothing usefull. suggest query So why is the additional parameter necessary? I would assume that solr takes care of it internaly. I have only conifugred one shard. But thanks anyway. It works as a workaround so far. Simon -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-Suggest-does-not-work-in-solrcloud-environment-tp4071587p4071660.html Sent from the Solr - User mailing list archive at Nabble.com.
SolrJ-1.4.0 client needs slf4j-jdk14-1.5.5 library on J2SE 1.5 Update 21
I've found that when running a SolrJ client on J2SE 1.5 Update 21, in addition to the jars in the the dist/solrj-lib directory I need slf4j-jdk14-1.5.5.jar in the lib directory, otherwise I get an exception where it can't find org.slf4j.impl.StaticLoggerBinder. -Jon - SECURITY/CONFIDENTIALITY WARNING: This message and any attachments are intended solely for the individual or entity to which they are addressed. This communication may contain information that is privileged, confidential, or exempt from disclosure under applicable law (e.g., personal health information, research data, financial information). Because this e-mail has been sent without encryption, individuals other than the intended recipient may be able to view the information, forward it to others or tamper with the information without the knowledge or consent of the sender. If you are not the intended recipient, or the employee or person responsible for delivering the message to the intended recipient, any dissemination, distribution or copying of the communication is strictly prohibited. If you received the communication in error, please notify the sender immediately by replying to this message and deleting the message and any accompanying files from your system. If, due to the security risks, you do not wish to receive further communications via e-mail, please reply to this message and inform the sender that you do not wish to receive further e-mail from the sender. -
Securing Solr 1.4 in a glassfish container
Hi All, I am considering securing Solr with basic auth in glassfish using the container, by adding to web.xml and adding sun-web.xml file to the distributed WAR as below. If using SolrJ to index files, how can I provide the credentials for authentication to the http-client (or can someone point me in the direction of the right documentation to do that or that will help me make the appropriate modifications) ? Also any comment on the below is appreciated. Add this to web.xml --- BASIC SomeRealm Admin Pages /admin /admin/* GETPOSTPUTTRACEHEADOPTIONSDELETE SomeAdminRole Update Servlet /update/* GETPOSTPUTTRACEHEADOPTIONSDELETE SomeUpdateRole Select Servlet /select/* GETPOSTPUTTRACEHEADOPTIONSDELETE SomeSearchRole --- Also add this as sun-web.xml http://www.sun.com/software/appserver/dtds/sun-web-app_2_5-0.dtd";> /Solr Keep a copy of the generated servlet class' java code. SomeAdminRole SomeAdminGroup SomeUpdateRole SomeUpdateGroup SomeSearchRole SomeSearchGroup -- -Jon - SECURITY/CONFIDENTIALITY WARNING: This message and any attachments are intended solely for the individual or entity to which they are addressed. This communication may contain information that is privileged, confidential, or exempt from disclosure under applicable law (e.g., personal health information, research data, financial information). Because this e-mail has been sent without encryption, individuals other than the intended recipient may be able to view the information, forward it to others or tamper with the information without the knowledge or consent of the sender. If you are not the intended recipient, or the employee or person responsible for delivering the message to the intended recipient, any dissemination, distribution or copying of the communication is strictly prohibited. If you received the communication in error, please notify the sender immediately by replying to this message and deleting the message and any accompanying files from your system. If, due to the security risks, you do not wish to receive further communications via e-mail, please reply to this message and inform the sender that you do not wish to receive further e-mail from the sender. -
Securing Solr 1.4 in a glassfish container AS NEW THREAD
Hi All, I am considering securing Solr with basic auth in glassfish using the container, by adding to web.xml and adding sun-web.xml file to the distributed WAR as below. If using SolrJ to index files, how can I provide the credentials for authentication to the http-client (or can someone point me in the direction of the right documentation to do that or that will help me make the appropriate modifications) ? Also any comment on the below is appreciated. Add this to web.xml --- BASIC SomeRealm Admin Pages /admin /admin/* GETPOSTmethod>PUTTRACEmethodHEADOPTIONSmethod>DELETE SomeAdminRole Update Servlet /update/* GETPOSTmethod>PUTTRACEmethodHEADOPTIONSmethod>DELETE SomeUpdateRole Select Servlet /select/* GETPOSTmethod>PUTTRACEmethodHEADOPTIONSmethod>DELETE SomeSearchRole --- Also add this as sun-web.xml Application Server 9.0 Servlet 2.5//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_2_5-0.dtd "> /Solr Keep a copy of the generated servlet class' java code. SomeAdminRole SomeAdminGroup SomeUpdateRole SomeUpdateGroup SomeSearchRole SomeSearchGroup -- -Jon - SECURITY/CONFIDENTIALITY WARNING: This message and any attachments are intended solely for the individual or entity to which they are addressed. This communication may contain information that is privileged, confidential, or exempt from disclosure under applicable law (e.g., personal health information, research data, financial information). Because this e-mail has been sent without encryption, individuals other than the intended recipient may be able to view the information, forward it to others or tamper with the information without the knowledge or consent of the sender. If you are not the intended recipient, or the employee or person responsible for delivering the message to the intended recipient, any dissemination, distribution or copying of the communication is strictly prohibited. If you received the communication in error, please notify the sender immediately by replying to this message and deleting the message and any accompanying files from your system. If, due to the security risks, you do not wis h to receive further communications via e-mail, please reply to this message and inform the sender that you do not wish to receive further e-mail from the sender. -
RE: Securing Solr 1.4 in a glassfish container AS NEW THREAD
Hi Bilgin, Thanks for the snippet -- that helps a lot. -Jon -Original Message- From: Bilgin Ibryam [mailto:bibr...@gmail.com] Sent: Friday, July 16, 2010 1:31 AM To: solr-user@lucene.apache.org Subject: Re: Securing Solr 1.4 in a glassfish container AS NEW THREAD Hi Jon, SolrJ (CommonsHttpSolrServer) internally uses apache http client to connect to solr. You can check there for some documentation. I secured solr also with BASIC auth-method and use the following snippet to access it from solrJ: //set username and password ((CommonsHttpSolrServer) server).getHttpClient().getParams().setAuthenticationPreemptive(true); Credentials defaultcreds = new UsernamePasswordCredentials("username", "secret"); ((CommonsHttpSolrServer) server).getHttpClient().getState().setCredentials(new AuthScope("localhost", 80, AuthScope.ANY_REALM), defaultcreds); HTH Bilgin Ibryam On Fri, Jul 16, 2010 at 2:35 AM, Sharp, Jonathan wrote: > Hi All, > > I am considering securing Solr with basic auth in glassfish using the > container, by adding to web.xml and adding sun-web.xml file to the > distributed WAR as below. > > If using SolrJ to index files, how can I provide the credentials for > authentication to the http-client (or can someone point me in the direction > of the right documentation to do that or that will help me make the > appropriate modifications) ? > > Also any comment on the below is appreciated. > > Add this to web.xml > --- > > BASIC > SomeRealm > > > > Admin Pages > /admin > /admin/* > > GETPOSTPUTTRACEHEADOPTIONSDELETE > > > SomeAdminRole > > > > > Update Servlet > /update/* > > GETPOSTPUTTRACEHEADOPTIONSDELETE > > > SomeUpdateRole > > > > > Select Servlet > /select/* > > GETPOSTPUTTRACEHEADOPTIONSDELETE > > > SomeSearchRole > > > --- > > Also add this as sun-web.xml > > > > Server 9.0 Servlet 2.5//EN" " > http://www.sun.com/software/appserver/dtds/sun-web-app_2_5-0.dtd";> > > /Solr > > > Keep a copy of the generated servlet class' java > code. > > > > SomeAdminRole > SomeAdminGroup > > > SomeUpdateRole > SomeUpdateGroup > > > SomeSearchRole > SomeSearchGroup > > > -- > > -Jon > > > - > SECURITY/CONFIDENTIALITY WARNING: This message and any attachments are > intended solely for the individual or entity to which they are addressed. > This communication may contain information that is privileged, confidential, > or exempt from disclosure under applicable law (e.g., personal health > information, research data, financial information). Because this e-mail has > been sent without encryption, individuals other than the intended recipient > may be able to view the information, forward it to others or tamper with the > information without the knowledge or consent of the sender. If you are not > the intended recipient, or the employee or person responsible for delivering > the message to the intended recipient, any dissemination, distribution or > copying of the communication is strictly prohibited. If you received the > communication in error, please notify the sender immediately by replying to > this message and deleting the message and any accompanying files from your > system. If, due to the security risks, you do not wis > h to > receive further communications via e-mail, please reply to this message and > inform the sender that you do not wish to receive further e-mail from the > sender. > - > >
RE: Securing Solr 1.4 in a glassfish container AS NEW THREAD
Some further information -- I tried indexing a batch of PDFs with the client and Solr CELL, setting the credentials in the httpclient. For some reason after successfully indexing several hundred files I start getting a "SolrException: Unauthorized" and an info message (for every subsequent file): INFO basic authentication scheme selected Org.apache.commons.httpclient.HttpMethodDirector process WWWAuthChallenge INFO Failure authenticating with BASIC ''@host:port I increased session timeout in web.xml with no change. I'm looking through the httpclient authentication now. -Jon -Original Message- From: Sharp, Jonathan Sent: Friday, July 16, 2010 8:59 AM To: 'solr-user@lucene.apache.org' Subject: RE: Securing Solr 1.4 in a glassfish container AS NEW THREAD Hi Bilgin, Thanks for the snippet -- that helps a lot. -Jon -Original Message- From: Bilgin Ibryam [mailto:bibr...@gmail.com] Sent: Friday, July 16, 2010 1:31 AM To: solr-user@lucene.apache.org Subject: Re: Securing Solr 1.4 in a glassfish container AS NEW THREAD Hi Jon, SolrJ (CommonsHttpSolrServer) internally uses apache http client to connect to solr. You can check there for some documentation. I secured solr also with BASIC auth-method and use the following snippet to access it from solrJ: //set username and password ((CommonsHttpSolrServer) server).getHttpClient().getParams().setAuthenticationPreemptive(true); Credentials defaultcreds = new UsernamePasswordCredentials("username", "secret"); ((CommonsHttpSolrServer) server).getHttpClient().getState().setCredentials(new AuthScope("localhost", 80, AuthScope.ANY_REALM), defaultcreds); HTH Bilgin Ibryam On Fri, Jul 16, 2010 at 2:35 AM, Sharp, Jonathan wrote: > Hi All, > > I am considering securing Solr with basic auth in glassfish using the > container, by adding to web.xml and adding sun-web.xml file to the > distributed WAR as below. > > If using SolrJ to index files, how can I provide the credentials for > authentication to the http-client (or can someone point me in the direction > of the right documentation to do that or that will help me make the > appropriate modifications) ? > > Also any comment on the below is appreciated. > > Add this to web.xml > --- > > BASIC > SomeRealm > > > > Admin Pages > /admin > /admin/* > > GETPOSTPUTTRACEHEADOPTIONSDELETE > > > SomeAdminRole > > > > > Update Servlet > /update/* > > GETPOSTPUTTRACEHEADOPTIONSDELETE > > > SomeUpdateRole > > > > > Select Servlet > /select/* > > GETPOSTPUTTRACEHEADOPTIONSDELETE > > > SomeSearchRole > > > --- > > Also add this as sun-web.xml > > > > Server 9.0 Servlet 2.5//EN" " > http://www.sun.com/software/appserver/dtds/sun-web-app_2_5-0.dtd";> > > /Solr > > > Keep a copy of the generated servlet class' java > code. > > > > SomeAdminRole > SomeAdminGroup > > > SomeUpdateRole > SomeUpdateGroup > > > SomeSearchRole > SomeSearchGroup > > > -- > > -Jon > > > - > SECURITY/CONFIDENTIALITY WARNING: This message and any attachments are > intended solely for the individual or entity to which they are addressed. > This communication may contain information that is privileged, confidential, > or exempt from disclosure under applicable law (e.g., personal health > information, research data, financial information). Because this e-mail has > been sent without encryption, individuals other than the intended recipient > may be able to view the information, forward it to others or tamper with the > information without the knowledge or consent of the sender. If you are not > the intended recipient, or the employee or person responsible for delivering > the message to the intended recipient, any dissemination, distribution or > copying of the communication is strictly prohibited. If you received the > communication in error, please notify the sender immediately by replying to > this message and deleting the message and any accompanying files from your > system. If, due to the security risks, you do not wis > h to > receive further communications via e-mail, please reply to this message and > inform the sender that you do not wish to receive further e-mail from the > sender. > - > >
Re: Securing Solr 1.4 in a glassfish container AS NEW THREAD
Are you using the same instance of CommonsHttpSolrServer for all the requests? I was. I also tried creating a new instance every x requests, also resetting the credentials on the new instances, to see if it would make a difference. Doing that, I get an exception after several instances of the httpserver (again several hundred PDFs) to the effect that the socket is still in use... Perhaps I am not releasing the resources properly...? -Jon On Jul 22, 2010, at 3:02 AM, "Bilgin Ibryam" wrote: Are you using the same instance of CommonsHttpSolrServer for all the requests? On Wed, Jul 21, 2010 at 4:50 PM, Sharp, Jonathan wrote: Some further information -- I tried indexing a batch of PDFs with the client and Solr CELL, setting the credentials in the httpclient. For some reason after successfully indexing several hundred files I start getting a "SolrException: Unauthorized" and an info message (for every subsequent file): INFO basic authentication scheme selected Org.apache.commons.httpclient.HttpMethodDirector process WWWAuthChallenge INFO Failure authenticating with BASIC ''@host:port I increased session timeout in web.xml with no change. I'm looking through the httpclient authentication now. -Jon -----Original Message- From: Sharp, Jonathan Sent: Friday, July 16, 2010 8:59 AM To: 'solr-user@lucene.apache.org' Subject: RE: Securing Solr 1.4 in a glassfish container AS NEW THREAD Hi Bilgin, Thanks for the snippet -- that helps a lot. -Jon -Original Message- From: Bilgin Ibryam [mailto:bibr...@gmail.com] Sent: Friday, July 16, 2010 1:31 AM To: solr-user@lucene.apache.org Subject: Re: Securing Solr 1.4 in a glassfish container AS NEW THREAD Hi Jon, SolrJ (CommonsHttpSolrServer) internally uses apache http client to connect to solr. You can check there for some documentation. I secured solr also with BASIC auth-method and use the following snippet to access it from solrJ: //set username and password ((CommonsHttpSolrServer) server).getHttpClient().getParams().setAuthenticationPreemptive (true); Credentials defaultcreds = new UsernamePasswordCredentials("username", "secret"); ((CommonsHttpSolrServer) server).getHttpClient().getState().setCredentials(new AuthScope("localhost", 80, AuthScope.ANY_REALM), defaultcreds); HTH Bilgin Ibryam On Fri, Jul 16, 2010 at 2:35 AM, Sharp, Jonathan wrote: Hi All, I am considering securing Solr with basic auth in glassfish using the container, by adding to web.xml and adding sun-web.xml file to the distributed WAR as below. If using SolrJ to index files, how can I provide the credentials for authentication to the http-client (or can someone point me in the direction of the right documentation to do that or that will help me make the appropriate modifications) ? Also any comment on the below is appreciated. Add this to web.xml --- BASIC SomeRealm Admin Pages /admin /admin/* GETPOSTmetho d>PUTTRACEmethod>HEADp-method>OPTIONSDELETEhttp-met hod> SomeAdminRole Update Servlet /update/* GETPOSTmetho d>PUTTRACEmethod>HEADp-method>OPTIONSDELETEhttp-met hod> SomeUpdateRole Select Servlet /select/* GETPOSTmetho d>PUTTRACEmethod>HEADp-method>OPTIONSDELETEhttp-met hod> SomeSearchRole --- Also add this as sun-web.xml Application Server 9.0 Servlet 2.5//EN" " http://www.sun.com/software/appserver/dtds/sun-web-app_2_5-0.dtd";> /Solr Keep a copy of the generated servlet class' java code. SomeAdminRole SomeAdminGroup SomeUpdateRole SomeUpdateGroup SomeSearchRole SomeSearchGroup -- -Jon --- -- SECURITY/CONFIDENTIALITY WARNING: This message and any attachments are intended solely for the individual or entity to which they are addressed. This communication may contain information that is privileged, confidential, or exempt from disclosure under applicable law (e.g., personal health information, research data, financial information). Because this e-mail has been sent without encryption, individuals other than the intended recipient may be able to view the information, forward it to others or tamper with the information without the knowledge or consent of the sender. If you are not the intended recipient, or the employee or person responsible for delivering the message to the intended recipient, any dissemination, distribution or copying of the communication is strictly prohib
Extracting PDF text/comment/callout/typewriter boxes with Solr CELL/Tika/PDFBox
Every so often I need to index new batches of scanned PDFs and occasionally Adobe's OCR can't recognize the text in a couple of these documents. In these situations I would like to type in a small amount of text onto the document and have it be extracted by Solr CELL. Adobe Pro 9 has a number of different ways to add text directly to a PDF file: *Typewriter *Sticky Note *Callout boxes *Text boxes I tried indexing documents with each of these text additions with Solr 1.4.1 + Solr CELL but can't extract the text in any of these boxes. If someone has modified their Solr CELL installation to use more recent versions of Tika (above 0.4) or PDFBox (above 0.7.3) and/or can can comment on whether newer versions can pull the text out of any of these various text boxes I'd appreciate that very much. -Jon - SECURITY/CONFIDENTIALITY WARNING: This message and any attachments are intended solely for the individual or entity to which they are addressed. This communication may contain information that is privileged, confidential, or exempt from disclosure under applicable law (e.g., personal health information, research data, financial information). Because this e-mail has been sent without encryption, individuals other than the intended recipient may be able to view the information, forward it to others or tamper with the information without the knowledge or consent of the sender. If you are not the intended recipient, or the employee or person responsible for delivering the message to the intended recipient, any dissemination, distribution or copying of the communication is strictly prohibited. If you received the communication in error, please notify the sender immediately by replying to this message and deleting the message and any accompanying files from your system. If, due to the security risks, you do not wish to receive further communications via e-mail, please reply to this message and inform the sender that you do not wish to receive further e-mail from the sender. -
RE: PDF file
Xiaohui, You need to add the following jars to the lib subdirectory of the solr config directory on your server. (path inside the solr 1.4.1 download) /dist/apache-solr-cell-1.4.1.jar plus all the jars in /contrib/extraction/lib HTH -Jon From: Ma, Xiaohui (NIH/NLM/LHC) [C] [xiao...@mail.nlm.nih.gov] Sent: Tuesday, August 10, 2010 11:57 AM To: 'solr-user@lucene.apache.org' Subject: RE: PDF file Does anyone have any experience with PDF file? I really appreciate your help! Thanks so much in advance. -Original Message- From: Ma, Xiaohui (NIH/NLM/LHC) [C] Sent: Tuesday, August 10, 2010 10:37 AM To: 'solr-user@lucene.apache.org' Subject: PDF file I have a lot of pdf files. I am trying to import pdf files to solr and index them. I added ExtractingRequestHandler to solrconfig.xml. Please tell me if I need download some jar files. In the Solr1.4 Enterprise Search Server book, use following command to import a mccm.pdf. curl 'http://localhost:8983/solr/solr-home/update/extract?map.content=text&map.stream_name=id&commit=true' -F "fi...@mccm.pdf" Please tell me if there is a way to import pdf files from a directory. Thanks so much for your help! - SECURITY/CONFIDENTIALITY WARNING: This message and any attachments are intended solely for the individual or entity to which they are addressed. This communication may contain information that is privileged, confidential, or exempt from disclosure under applicable law (e.g., personal health information, research data, financial information). Because this e-mail has been sent without encryption, individuals other than the intended recipient may be able to view the information, forward it to others or tamper with the information without the knowledge or consent of the sender. If you are not the intended recipient, or the employee or person responsible for delivering the message to the intended recipient, any dissemination, distribution or copying of the communication is strictly prohibited. If you received the communication in error, please notify the sender immediately by replying to this message and deleting the message and any accompanying files from your system. If, due to the security risks, you do not wish to receive further communications via e-mail, please reply to this message and inform the sender that you do not wish to receive further e-mail from the sender. -
RE: any working SolrJ code example for Solr 1.4.1
Xin, I also had a similar error when I picked up SolrJ. See the first section of this wiki page for the extra jars (the ones not found in the dist directory): http://wiki.apache.org/solr/Solrj -Jon -Original Message- From: Xin Li [mailto:x...@book.com] Sent: Friday, October 01, 2010 8:58 AM To: solr-user@lucene.apache.org Subject: RE: any working SolrJ code example for Solr 1.4.1 That's precisely the reason I was asking about JARs too. It seems that I am the minority that ran into SolrJ issue. If that's the case, I will grab Perl solution, and come back to SolrJ later. Thanks, Xin -Original Message- From: Allistair Crossley [mailto:a...@roxxor.co.uk] Sent: Friday, October 01, 2010 11:52 AM To: solr-user@lucene.apache.org Subject: Re: any working SolrJ code example for Solr 1.4.1 no example anyone gives you will solve your class not found exception .. you need to ensure the relevant jars (in dist) are included in your solr instance's lib folder i guess? On Oct 1, 2010, at 10:50 AM, Xin Li wrote: > Hi, there, > > Just picked up SolrJ few days ago. I have my Solr Server set up, data > loaded, and everything worked fine with the web admin page. Then problem > came when I was trying to use SolrJ to interact with the Solr server. I > was stuck with "NoClassNotFoundException" yesterday. Being new to the > domain is a factor, but SolrJ could really use some more updated > documentation. > > .. Long story short, does anyone have a minimal working SolrJ example > interacting with Solr 1.4.1? It would be nice to know the JARs too since > the errors I got were probably more related to JARs than the code > itself. > > Thanks, > Xin > > > > > > > > This electronic mail message contains information that (a) is or > may be CONFIDENTIAL, PROPRIETARY IN NATURE, OR OTHERWISE > PROTECTED > BY LAW FROM DISCLOSURE, and (b) is intended only for the use of > the addressee(s) named herein. If you are not an intended > recipient, please contact the sender immediately and take the > steps necessary to delete the message completely from your > computer system. > > Not Intended as a Substitute for a Writing: Notwithstanding the > Uniform Electronic Transaction Act or any other law of similar > effect, absent an express statement to the contrary, this e-mail > message, its contents, and any attachments hereto are not > intended > to represent an offer or acceptance to enter into a contract and > are not otherwise intended to bind this sender, > barnesandnoble.com > llc, barnesandnoble.com inc. or any other person or entity. This electronic mail message contains information that (a) is or may be CONFIDENTIAL, PROPRIETARY IN NATURE, OR OTHERWISE PROTECTED BY LAW FROM DISCLOSURE, and (b) is intended only for the use of the addressee(s) named herein. If you are not an intended recipient, please contact the sender immediately and take the steps necessary to delete the message completely from your computer system. Not Intended as a Substitute for a Writing: Notwithstanding the Uniform Electronic Transaction Act or any other law of similar effect, absent an express statement to the contrary, this e-mail message, its contents, and any attachments hereto are not intended to represent an offer or acceptance to enter into a contract and are not otherwise intended to bind this sender, barnesandnoble.com llc, barnesandnoble.com inc. or any other person or entity. - SECURITY/CONFIDENTIALITY WARNING: This message and any attachments are intended solely for the individual or entity to which they are addressed. This communication may contain information that is privileged, confidential, or exempt from disclosure under applicable law (e.g., personal health information, research data, financial information). Because this e-mail has been sent without encryption, individuals other than the intended recipient may be able to view the information, forward it to others or tamper with the information without the knowledge or consent of the sender. If you are not the intended recipient, or the employee or person responsible for delivering the message to the intended recipient, any dissemination, distribution or copying of the communication is strictly prohibited. If you received the communication in error, please notify the sender immediately by replying to this message and deleting the message and any accompanying files from your system. If, due to the security risks, you do not wish to receive further communications via e-mail, please reply to this message and inform the sender that you do not wish to receive further e-mail from the sender. -
RE: how can i use solrj binary format for indexing?
>Hi all >I have a huge amount of xml files for indexing. >I want to index using solrj binary format to get performance gain. >Because I heard that using xml files to index is quite slow. >But I don't know how to use index through solrj binary format and can't >find >examples. >Please give some help. >Thanks, You might want to take a look at this section of the wiki too -- http://wiki.apache.org/solr/Solrj#Setting_the_RequestWriter -Jon -Original Message- From: Jason, Kim [mailto:hialo...@gmail.com] Sent: Monday, October 18, 2010 7:52 AM To: solr-user@lucene.apache.org Subject: Re: how can i use solrj binary format for indexing? Thank you for reply, Gora But I still have several questions. Did you use separate index? If so, you indexed 0.7 million Xml files per instance and merged it. Is it Right? Please let me know how to work multiple instances and cores in your case. Regards, -- View this message in context: http://lucene.472066.n3.nabble.com/how-can-i-use-solrj-binary-format-for-indexing-tp1722612p1725679.html Sent from the Solr - User mailing list archive at Nabble.com. - SECURITY/CONFIDENTIALITY WARNING: This message and any attachments are intended solely for the individual or entity to which they are addressed. This communication may contain information that is privileged, confidential, or exempt from disclosure under applicable law (e.g., personal health information, research data, financial information). Because this e-mail has been sent without encryption, individuals other than the intended recipient may be able to view the information, forward it to others or tamper with the information without the knowledge or consent of the sender. If you are not the intended recipient, or the employee or person responsible for delivering the message to the intended recipient, any dissemination, distribution or copying of the communication is strictly prohibited. If you received the communication in error, please notify the sender immediately by replying to this message and deleting the message and any accompanying files from your system. If, due to the security risks, you do not wish to receive further communications via e-mail, please reply to this message and inform the sender that you do not wish to receive further e-mail from the sender. -
RE: Looking for Developers
http://www.rhyolite.com/anti-spam/you-might-be.html#spammers-are-stupid-3 - SECURITY/CONFIDENTIALITY WARNING: This message and any attachments are intended solely for the individual or entity to which they are addressed. This communication may contain information that is privileged, confidential, or exempt from disclosure under applicable law (e.g., personal health information, research data, financial information). Because this e-mail has been sent without encryption, individuals other than the intended recipient may be able to view the information, forward it to others or tamper with the information without the knowledge or consent of the sender. If you are not the intended recipient, or the employee or person responsible for delivering the message to the intended recipient, any dissemination, distribution or copying of the communication is strictly prohibited. If you received the communication in error, please notify the sender immediately by replying to this message and deleting the message and any accompanying files from your system. If, due to the security risks, you do not wish to receive further communications via e-mail, please reply to this message and inform the sender that you do not wish to receive further e-mail from the sender. -
Re: "Invalid or unreadable WAR file : .../solr.war" when starting solr 3.6.1 app on Tomcat 7?
/srv/www sounds like a doc root for a web server... On Jul 22, 2012, at 1:24 PM, k9...@operamail.com wrote: > > I've installed > >rpm -qa | grep -i ^tomcat-7 >tomcat-7.0.27-7.1.noarch > > with > >update-alternatives --query java | grep Value >Value: /usr/lib64/jvm/jre-1.7.0-openjdk/bin/java > > on >GNU/Linux >x86_64 >kernel 3.1.10 > > Tomcat is started & listening @ 127.0.0.1 > >netstat -pan --tcp | grep 8080 >tcp0 0 127.0.0.1:8080 0.0.0.0:* > LISTEN 29513/java > > @ > >http://localhost:8080/ > > I see > >Apache Tomcat/7.0.27 >If you're seeing this, you've successfully installed Tomcat. >Congratulations! >... > > Deploying SOLR 3.6.1 > >cd /usr/local/apache-solr-3.6.1 >/bin/cp -Rf ./example/solr/* /srv/www/solr/home >/bin/cp -f ./dist/apache-solr-3.6.1.war >/srv/www/solr/home/solr.war >/bin/cp -f ./example/solr/conf/schema.xml >/srv/www/solr/home/conf/ > > then, define solr/home > >cat /etc/tomcat/Catalina/localhost/solr.xml >privileged="true" allowLinking="true" >crossContext="true" > >value="/srv/www/solr/home" override="true" /> > > > and reference it, > >grep dataDir /srv/www/solr/home/conf/solrconfig.xml > ${solr.data.dir:/srv/www/solr/home/data} > > restart tomcat, then @: > >http://localhost:8080/manager/html > > lists the deployed "/solr" app as NOT running, > >Path Version Display Name >Running Sessions >/ None specified Welcome to Tomcat >true0 >/docs None specified Tomcat Documentation >true0 >/examples None specified Servlet and JSP Examples >true0 >/host-manager None specified Tomcat Host Manager Application >true1 >/manager None specified Tomcat Manager Application >true1 >/sampleNone specified Hello, World Application >true0 >/solr None specified >false 0 > > clicking "start" @ the "/solr" app path link returns, > > @ browser, > >HTTP Status 404 - /solr >type Status report >message /solr >description The requested resource (/solr) is not available. >Apache Tomcat/7.0.27 > > & @ logs: > > >==> /var/log/tomcat/manager.2012-07-22.log <== >Jul 22, 2012 12:03:14 PM >org.apache.catalina.core.ApplicationContext log >INFO: HTMLManager: start: Starting web application '/solr' > >==> /var/log/tomcat/catalina.2012-07-22.log <== >Jul 22, 2012 12:03:14 PM >org.apache.catalina.core.StandardContext resourcesStart >SEVERE: Error starting static Resources >java.lang.IllegalArgumentException: Invalid or unreadable WAR >file : /srv/www/solr/home/solr.war >at > > org.apache.naming.resources.WARDirContext.setDocBase(WARDirContext.java:136) >at > > org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4894) >at > > org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5074) >at > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) >at > > org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1247) >at > > org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:747) >at > > org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:222) >at >javax.servlet.http.HttpServlet.service(HttpServlet.java:641) >at >javax.servlet.http.HttpServlet.service(HttpServlet.java:722) >at > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) >at > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) >at > > org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:186) >at > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) >at > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) >at > > org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108) >at > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) >at > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) >at > > org.apache.catalina.core.