Problem with add a XML
Hi, I make tests my first tests with solr. My problem ist I have 2 xml files 1) TWINX2048-3200PRO CORSAIR XMS 2GB (2 x 1GB) 184-Pin DDR SDRAM Unbuffered DDR 400 (PC 3200) Dual Channel Kit System Memory - Retail Corsair Microsystems Inc. electronics memory CAS latency 2, 2-3-3-6 timing, 2.75v, unbuffered, heat-spreader 185 5 true (this ist the XML from the Samples) 2) 85f4fdf9-e596-4974-a5b9-57778e38067b 143885 28.10.2005 13:06:15 Rechnung 2005-025235 Rechnungsduplikate 2002 330T.doc KIS Bonow 25906 Hofma GmbH Mandant (the second have I create) now I want tho add die files to solr. I have start solr on windows in the example directory with java -jar start.jar I have the following Error Message: C:\test\output>java -jar post.jar *.xml SimplePostTool: version 1.2 SimplePostTool: WARNING: Make sure your XML documents are encoded in UTF-8, other encodings are not currently supported SimplePostTool: POSTing files to http://localhost:8983/solr/update.. SimplePostTool: POSTing file 1.xml SimplePostTool: POSTing file 2.xml SimplePostTool: FATAL: Connection error (is Solr running at http://localhost:8983/solr/update ?): java.io.IOException: S erver returned HTTP response code: 400 for URL: http://localhost:8983/solr/update C:\test\output> Regards Thomas Lauer __ Hinweis von ESET NOD32 Antivirus, Signaturdatenbank-Version 3175 (20080611) __ E-Mail wurde geprüft mit ESET NOD32 Antivirus. http://www.eset.com
Re: Problem with add a XML
Yes my file is UTF-8. I Have Upload my file. Grant Ingersoll-6 wrote: > > > On Jun 11, 2008, at 3:46 AM, Thomas Lauer wrote: > >> now I want tho add die files to solr. I have start solr on windows >> in the example directory with java -jar start.jar >> >> >> I have the following Error Message: >> >> C:\test\output>java -jar post.jar *.xml >> SimplePostTool: version 1.2 >> SimplePostTool: WARNING: Make sure your XML documents are encoded in >> UTF-8, other encodings are not currently supported > > > This is your issue right here. You have to save that second file in > UTF-8. > >> >> SimplePostTool: POSTing files to http://localhost:8983/solr/update.. >> SimplePostTool: POSTing file 1.xml >> SimplePostTool: POSTing file 2.xml >> SimplePostTool: FATAL: Connection error (is Solr running at >> http://localhost:8983/solr/update >> ?): java.io.IOException: S >> erver returned HTTP response code: 400 for URL: >> http://localhost:8983/solr/update >> >> C:\test\output> >> >> Regards Thomas Lauer >> >> >> >> >> >> __ Hinweis von ESET NOD32 Antivirus, Signaturdatenbank- >> Version 3175 (20080611) __ >> >> E-Mail wurde geprüft mit ESET NOD32 Antivirus. >> >> http://www.eset.com > > -- > Grant Ingersoll > http://www.lucidimagination.com > > Lucene Helpful Hints: > http://wiki.apache.org/lucene-java/BasicsOfPerformance > http://wiki.apache.org/lucene-java/LuceneFAQ > > > > > > > > > http://www.nabble.com/file/p17794387/2.xml 2.xml -- View this message in context: http://www.nabble.com/Problem-with-add-a-XML-tp17772018p17794387.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Problem with add a XML
This is the error message from the console. SCHWERWIEGEND: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: [EMAIL PROTECTED]:\Dokumente und E instellungen\tla\Desktop\solr\apache-solr-1.2.0\apache-solr-1.2.0\example\solr\data\index\write.lock at org.apache.lucene.store.Lock.obtain(Lock.java:70) at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:579) at org.apache.lucene.index.IndexWriter.(IndexWriter.java:341) at org.apache.solr.update.SolrIndexWriter.(SolrIndexWriter.java:65) at org.apache.solr.update.UpdateHandler.createMainIndexWriter(UpdateHandler.java:120) at org.apache.solr.update.DirectUpdateHandler2.openWriter(DirectUpdateHandler2.java:181) at org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:259) at org.apache.solr.handler.XmlUpdateRequestHandler.update(XmlUpdateRequestHandler.java:166) at org.apache.solr.handler.XmlUpdateRequestHandler.handleRequestBody(XmlUpdateRequestHandler.java:84) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:77) at org.apache.solr.core.SolrCore.execute(SolrCore.java:658) at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:191) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:159) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:285) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:835) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:641) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:202) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378) at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442) Jón Helgi Jónsson wrote: > > Usually you get better error messages from the start.jar console, you > don't see anything there? > > On Thu, Jun 12, 2008 at 7:49 AM, Thomas Lauer <[EMAIL PROTECTED]> wrote: >> >> Yes my file is UTF-8. I Have Upload my file. >> >> >> >> >> Grant Ingersoll-6 wrote: >>> >>> >>> On Jun 11, 2008, at 3:46 AM, Thomas Lauer wrote: >>> >>>> now I want tho add die files to solr. I have start solr on windows >>>> in the example directory with java -jar start.jar >>>> >>>> >>>> I have the following Error Message: >>>> >>>> C:\test\output>java -jar post.jar *.xml >>>> SimplePostTool: version 1.2 >>>> SimplePostTool: WARNING: Make sure your XML documents are encoded in >>>> UTF-8, other encodings are not currently supported >>> >>> >>> This is your issue right here. You have to save that second file in >>> UTF-8. >>> >>>> >>>> SimplePostTool: POSTing files to http://localhost:8983/solr/update.. >>>> SimplePostTool: POSTing file 1.xml >>>> SimplePostTool: POSTing file 2.xml >>>> SimplePostTool: FATAL: Connection error (is Solr running at >>>> http://localhost:8983/solr/update >>>> ?): java.io.IOException: S >>>> erver returned HTTP response code: 400 for URL: >>>> http://localhost:8983/solr/update >>>> >>>> C:\test\output> >>>> >>>> Regards Thomas Lauer >>>> >>>> >>>> >>>> >>>> >>>> __ Hinweis von ESET NOD32 Antivirus, Signaturdatenbank- >>>> Version 3175 (20080611) __ >>>> >>>> E-Mail wurde geprüft mit ESET NOD32 Antivirus. >>>> >>>> http://www.eset.com >>> >>> -- >>> Grant Ingersoll
My First Solr
HI, i have installed my first solr on tomcat. I have modify my shema.xml for my XML´s and I have import with the post.jar some xml files. tomcat runs solr/admin runs post.jar imports files but I can´t find my files. the reponse ist always 0 0 10 0 on KIS 2.2 My files in the attachment Regards Thomas guid beschreibung  00098d72-c03a-4075-b8af-80bd7d6fd7c5 143882 28.10.2005 13:05:52 Rechnung 2005-025232 Rechnungsduplikate 2002 330Q.doc KIS Bonow 29536 Guardus Solutions AG Mandant
AW: My First Solr
Hi Brian, i have tested: SimplePostTool: version 1.2 SimplePostTool: WARNING: Make sure your XML documents are encoded in UTF-8, other encodings are not currently supported SimplePostTool: POSTing files to http://localhost:8983/solr/update.. SimplePostTool: POSTing file import_sample.xml SimplePostTool: COMMITting Solr index changes.. but can´t find the document. Regards Thomas -Ursprüngliche Nachricht- Von: Brian Carmalt [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 13. Juni 2008 07:36 An: solr-user@lucene.apache.org Betreff: Re: My First Solr Hello Thomas, Have you performed a commit? Try adding as the last line of the document you are adding. I would suggest you read up on commits and how often you should perform them and how to do auto commits. Brian Am Freitag, den 13.06.2008, 07:20 +0200 schrieb Thomas Lauer: > HI, > > i have installed my first solr on tomcat. I have modify my shema.xml > for my XML´s and I have import with the post.jar some xml files. > > tomcat runs > solr/admin runs > > post.jar imports files > > > but I can´t find my files. > > the reponse ist always > > > > > 0 > 0 > > 10 > 0 > on > KIS > 2.2 > > > > > > My files in the attachment > > Regards Thomas > >
AW: AW: My First Solr
ok, i find my files now. can I make all files to the default search file? Regards Thomas -Ursprüngliche Nachricht- Von: Brian Carmalt [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 13. Juni 2008 08:03 An: solr-user@lucene.apache.org Betreff: Re: AW: My First Solr Do you see if the document update is sucessful? When you start solr with java -jar start.jar for the example, Solr will list the the document id of the docs that you are adding and tell you how long the update took. A simple but brute force method to findout if a document has been commited is to stop the server and then restart it. You can also use the solr/admin/stats.jsp page to see if the docs are there. After looking at your query in the results you posted, I would bet that you are not specifying a search field. try searching for "anwendung:KIS" or "id:[1 TO *]" to see all the docs in you index. Brian Am Freitag, den 13.06.2008, 07:40 +0200 schrieb Thomas Lauer: > i have tested: > SimplePostTool: version 1.2 > SimplePostTool: WARNING: Make sure your XML documents are encoded in > UTF-8, other encodings are not currently supported > SimplePostTool: POSTing files to http://localhost:8983/solr/update.. > SimplePostTool: POSTing file import_sample.xml > SimplePostTool: COMMITting Solr index changes.. __ Hinweis von ESET NOD32 Antivirus, Signaturdatenbank-Version 3182 (20080612) __ E-Mail wurde geprüft mit ESET NOD32 Antivirus. http://www.eset.com
AW: AW: AW: My First Solr
Hi Brian, i don´t find any documentation or howto for the DisMaxQueryHandler? Regards Thomas -Ursprüngliche Nachricht- Von: Brian Carmalt [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 13. Juni 2008 08:52 An: solr-user@lucene.apache.org Betreff: Re: AW: AW: My First Solr The DisMaxQueryHandler is your friend. Am Freitag, den 13.06.2008, 08:29 +0200 schrieb Thomas Lauer: > ok, i find my files now. can I make all files to the default search file? > > Regards Thomas > > -Ursprüngliche Nachricht- > Von: Brian Carmalt [mailto:[EMAIL PROTECTED] > Gesendet: Freitag, 13. Juni 2008 08:03 > An: solr-user@lucene.apache.org > Betreff: Re: AW: My First Solr > > Do you see if the document update is sucessful? When you start solr with > java -jar start.jar for the example, Solr will list the the document id > of the docs that you are adding and tell you how long the update took. > > A simple but brute force method to findout if a document has been > commited is to stop the server and then restart it. > > You can also use the solr/admin/stats.jsp page to see if the docs are > there. > > After looking at your query in the results you posted, I would bet that > you are not specifying a search field. try searching for "anwendung:KIS" > or "id:[1 TO *]" to see all the docs in you index. > > Brian > > Am Freitag, den 13.06.2008, 07:40 +0200 schrieb Thomas Lauer: > > i have tested: > > SimplePostTool: version 1.2 > > SimplePostTool: WARNING: Make sure your XML documents are encoded in > > UTF-8, other encodings are not currently supported > > SimplePostTool: POSTing files to http://localhost:8983/solr/update.. > > SimplePostTool: POSTing file import_sample.xml > > SimplePostTool: COMMITting Solr index changes.. > > > > __ Hinweis von ESET NOD32 Antivirus, Signaturdatenbank-Version 3182 > (20080612) __ > > E-Mail wurde geprüft mit ESET NOD32 Antivirus. > > http://www.eset.com > __ Hinweis von ESET NOD32 Antivirus, Signaturdatenbank-Version 3182 (20080612) __ E-Mail wurde geprüft mit ESET NOD32 Antivirus. http://www.eset.com
AW: My First Solr
ok, my dismax explicit 0.01 beschreibung^0.5 ordner^1.0 register^1.2 Benutzer^1.5 guid^10.0 mandant^1.1 beschreibung^0.2 ordner^1.1 register^1.5 manu^1.4 manu_exact^1.9 ord(poplarity)^0.5 recip(rord(price),1,1000,1000)^0.3 guid,beschreibung,mandant,Benutzer 2<-1 5<-2 6<90% 100 *:* must i make a reindex? I seek with this url http://localhost:8983/solr/select?indent=on&version=2.2&q=bonow&start=0&rows=10&fl=*%2Cscore&qt=dismax&wt=standard&explainOther=&hl.fl= The response is: HTTP Status 400 - undefined field text type Status report message undefined field text description The request sent by the client was syntactically incorrect (undefined field text). Regards Thomas -Ursprüngliche Nachricht- Von: Brian Carmalt [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 13. Juni 2008 09:50 An: solr-user@lucene.apache.org Betreff: Re: My First Solr http://wiki.apache.org/solr/DisMaxRequestHandler In solrconfig.xml there are example configurations for the DisMax. Sorry I told you the wrong name, not enough coffee this morning. Brian. Am Freitag, den 13.06.2008, 09:40 +0200 schrieb Thomas Lauer: __ Hinweis von ESET NOD32 Antivirus, Signaturdatenbank-Version 3182 (20080612) __ E-Mail wurde geprüft mit ESET NOD32 Antivirus. http://www.eset.com
AW: AW: My First Solr
HI Brian thank you for help. Where are you from? Regards Thomas -Ursprüngliche Nachricht- Von: Brian Carmalt [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 13. Juni 2008 11:43 An: solr-user@lucene.apache.org Betreff: Re: AW: My First Solr No, you do not have to reindex. You do have to restart the server. The bf has fields listed that are not in your document: popularity, price. delete the bf field, you do not need it unless you want to use boost functions. Brian Am Freitag, den 13.06.2008, 10:36 +0200 schrieb Thomas Lauer: > ok, > > my dismax > > > > explicit > 0.01 > > beschreibung^0.5 ordner^1.0 register^1.2 Benutzer^1.5 guid^10.0 > mandant^1.1 > > > beschreibung^0.2 ordner^1.1 register^1.5 manu^1.4 manu_exact^1.9 > > > ord(poplarity)^0.5 recip(rord(price),1,1000,1000)^0.3 > > > guid,beschreibung,mandant,Benutzer > > > 2<-1 5<-2 6<90% > > 100 > *:* > > > > must i make a reindex? > > I seek with this url > http://localhost:8983/solr/select?indent=on&version=2.2&q=bonow&start=0&rows=10&fl=*%2Cscore&qt=dismax&wt=standard&explainOther=&hl.fl= > > The response is: > HTTP Status 400 - undefined field text > > type Status report > message undefined field text > description The request sent by the client was syntactically incorrect > (undefined field text). > > > Regards Thomas > > > -Ursprüngliche Nachricht- > Von: Brian Carmalt [mailto:[EMAIL PROTECTED] > Gesendet: Freitag, 13. Juni 2008 09:50 > An: solr-user@lucene.apache.org > Betreff: Re: My First Solr > > http://wiki.apache.org/solr/DisMaxRequestHandler > > In solrconfig.xml there are example configurations for the DisMax. > > Sorry I told you the wrong name, not enough coffee this morning. > > Brian. > > > Am Freitag, den 13.06.2008, 09:40 +0200 schrieb Thomas Lauer: > > > > __ Hinweis von ESET NOD32 Antivirus, Signaturdatenbank-Version 3182 > (20080612) __ > > E-Mail wurde geprüft mit ESET NOD32 Antivirus. > > http://www.eset.com >