You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Thomas Lauer <La...@glsh.net> on 2008/06/13 07:20:37 UTC

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

  <?xml version="1.0" encoding="UTF-8" ?>
  <response>
   <lst name="responseHeader">
    <int name="status">0</int>
    <int name="QTime">0</int>
    <lst name="params">
     <str name="rows">10</str>
     <str name="start">0</str>
     <str name="indent">on</str>
     <str name="q">KIS</str>
     <str name="version">2.2</str>
    </lst>
   </lst>
  <result name="response" numFound="0" start="0" />
  </response>

My files in the attachment

Regards Thomas



Re: My First Solr

Posted by Mihails Agafonovs <_m...@inbox.lv>.
Hi, Thomas!
Please, can you give me instructions on how did you installed Solr on
Tomcat?
 Quoting Thomas Lauer : HI,
 i have installed my first solr on tomcat. I have modify my shema.xml
 for my XML&acute;s and I have import with the post.jar some xml
files.
 tomcat runs
 solr/admin runs
 post.jar imports files
 but I can&acute;t find my files.
 the reponse ist always
 0
 0
 10
 0
 on
 KIS
 2.2
 My files in the attachment
 Regards Thomas
 Ar cieņu, Mihails

Links:
------
[1] mailto:Lauer@glsh.net

Re: My First Solr

Posted by Geert Van Huychem <ge...@vanhuychem.com>.
Hi,

the string you're looking for is in the "anwendung" field, while your 
default searchfield is the "beschreibung" field, try specifying the 
searchfield like this anwendung:"KIS".

Geert

Thomas Lauer wrote:
> 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
>
>   <?xml version="1.0" encoding="UTF-8" ?>
>   <response>
>    <lst name="responseHeader">
>     <int name="status">0</int>
>     <int name="QTime">0</int>
>     <lst name="params">
>      <str name="rows">10</str>
>      <str name="start">0</str>
>      <str name="indent">on</str>
>      <str name="q">KIS</str>
>      <str name="version">2.2</str>
>     </lst>
>    </lst>
>   <result name="response" numFound="0" start="0" />
>   </response>
>
> My files in the attachment
>
> Regards Thomas
>
>
>   


AW: AW: My First Solr

Posted by Thomas Lauer <La...@glsh.net>.
HI Brian

thank you for help. Where are you from?

Regards Thomas

-----Ursprüngliche Nachricht-----
Von: Brian Carmalt [mailto:bca@contact.de]
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
>
>   <requestHandler name="dismax" class="solr.DisMaxRequestHandler" >
>     <lst name="defaults">
>      <str name="echoParams">explicit</str>
>      <float name="tie">0.01</float>
>      <str name="qf">
>         beschreibung^0.5 ordner^1.0 register^1.2 Benutzer^1.5 guid^10.0 mandant^1.1
>      </str>
>      <str name="pf">
>         beschreibung^0.2 ordner^1.1 register^1.5 manu^1.4 manu_exact^1.9
>      </str>
>      <str name="bf">
>         ord(poplarity)^0.5 recip(rord(price),1,1000,1000)^0.3
>      </str>
>      <str name="fl">
>         guid,beschreibung,mandant,Benutzer
>      </str>
>      <str name="mm">
>         2&lt;-1 5&lt;-2 6&lt;90%
>      </str>
>      <int name="ps">100</int>
>      <str name="q.alt">*:*</str>
>     </lst>
>   </requestHandler>
>
> 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:bca@contact.de]
> 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
>


Re: AW: My First Solr

Posted by Brian Carmalt <bc...@contact.de>.
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
> 
>   <requestHandler name="dismax" class="solr.DisMaxRequestHandler" >
>     <lst name="defaults">
>      <str name="echoParams">explicit</str>
>      <float name="tie">0.01</float>
>      <str name="qf">
>         beschreibung^0.5 ordner^1.0 register^1.2 Benutzer^1.5 guid^10.0 mandant^1.1
>      </str>
>      <str name="pf">
>         beschreibung^0.2 ordner^1.1 register^1.5 manu^1.4 manu_exact^1.9
>      </str>
>      <str name="bf">
>         ord(poplarity)^0.5 recip(rord(price),1,1000,1000)^0.3
>      </str>
>      <str name="fl">
>         guid,beschreibung,mandant,Benutzer
>      </str>
>      <str name="mm">
>         2&lt;-1 5&lt;-2 6&lt;90%
>      </str>
>      <int name="ps">100</int>
>      <str name="q.alt">*:*</str>
>     </lst>
>   </requestHandler>
> 
> 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:bca@contact.de]
> 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: My First Solr

Posted by Thomas Lauer <La...@glsh.net>.
ok,

my dismax

  <requestHandler name="dismax" class="solr.DisMaxRequestHandler" >
    <lst name="defaults">
     <str name="echoParams">explicit</str>
     <float name="tie">0.01</float>
     <str name="qf">
        beschreibung^0.5 ordner^1.0 register^1.2 Benutzer^1.5 guid^10.0 mandant^1.1
     </str>
     <str name="pf">
        beschreibung^0.2 ordner^1.1 register^1.5 manu^1.4 manu_exact^1.9
     </str>
     <str name="bf">
        ord(poplarity)^0.5 recip(rord(price),1,1000,1000)^0.3
     </str>
     <str name="fl">
        guid,beschreibung,mandant,Benutzer
     </str>
     <str name="mm">
        2&lt;-1 5&lt;-2 6&lt;90%
     </str>
     <int name="ps">100</int>
     <str name="q.alt">*:*</str>
    </lst>
  </requestHandler>

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:bca@contact.de]
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


Re: My First Solr

Posted by Brian Carmalt <bc...@contact.de>.
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:


AW: AW: AW: My First Solr

Posted by Thomas Lauer <La...@glsh.net>.
Hi Brian,

i don´t find any documentation or howto for the DisMaxQueryHandler?

Regards
Thomas


-----Ursprüngliche Nachricht-----
Von: Brian Carmalt [mailto:bca@contact.de]
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:bca@contact.de]
> 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


Re: AW: AW: My First Solr

Posted by Brian Carmalt <bc...@contact.de>.
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:bca@contact.de]
> 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: My First Solr

Posted by Thomas Lauer <La...@glsh.net>.
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:bca@contact.de]
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


Re: AW: My First Solr

Posted by Brian Carmalt <bc...@contact.de>.
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.. 


AW: My First Solr

Posted by Thomas Lauer <La...@glsh.net>.
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:bca@contact.de]
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 <commit/> 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
>
>   <?xml version="1.0" encoding="UTF-8" ?>
>   <response>
>    <lst name="responseHeader">
>     <int name="status">0</int>
>     <int name="QTime">0</int>
>     <lst name="params">
>      <str name="rows">10</str>
>      <str name="start">0</str>
>      <str name="indent">on</str>
>      <str name="q">KIS</str>
>      <str name="version">2.2</str>
>     </lst>
>    </lst>
>   <result name="response" numFound="0" start="0" />
>   </response>
>
> My files in the attachment
>
> Regards Thomas
>
>


Re: My First Solr

Posted by Brian Carmalt <bc...@contact.de>.
Hello Thomas, 

Have you performed a commit? Try adding <commit/> 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
> 
>   <?xml version="1.0" encoding="UTF-8" ?>
>   <response>
>    <lst name="responseHeader">
>     <int name="status">0</int>
>     <int name="QTime">0</int>
>     <lst name="params">
>      <str name="rows">10</str>
>      <str name="start">0</str>
>      <str name="indent">on</str>
>      <str name="q">KIS</str>
>      <str name="version">2.2</str>
>     </lst>
>    </lst>
>   <result name="response" numFound="0" start="0" />
>   </response>
> 
> My files in the attachment
> 
> Regards Thomas
> 
>