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 Jill Han <ji...@alverno.edu> on 2009/12/04 17:54:46 UTC
RE: search on tomcat server
I went through all the links on http://wiki.apache.org/solr/#Search_and_Indexing
And still have no clue as how to proceed.
1. do I have to do some implementation in order to get solr to search doc. on tomcat server?
2. if I have files, such as .doc, docx, .pdf, .jsp, .html, etc under window xp, c:/tomcat/webapps/test1, /webapps/test2,
What should I do to make solr search those directories
3. since I am using tomcat, instead of jetty, is there any demo that shows the solr searching features, and real searching result?
Thanks,
Jill
-----Original Message-----
From: Shalin Shekhar Mangar [mailto:shalinmangar@gmail.com]
Sent: Monday, November 30, 2009 10:40 AM
To: solr-user@lucene.apache.org
Subject: Re: search on tomcat server
On Mon, Nov 30, 2009 at 9:55 PM, Jill Han <ji...@alverno.edu> wrote:
> I got solr running on the tomcat server,
> http://localhost:8080/solr/admin/
>
> After I enter a search word, such as, solr, then hit Search button, it
> will go to
>
> http://localhost:8080/solr/select/?q=solr&version=2.2&start=0&rows=10&in
> dent=on<http://localhost:8080/solr/select/?q=solr&version=2.2&start=0&rows=10&in%0Adent=on>
>
> and display
>
> <?xml version="1.0" encoding="UTF-8" ?>
>
> -
> <http://localhost:8080/solr/select/?q=solr&version=2.2&start=0&rows=10&i
> ndent=on<http://localhost:8080/solr/select/?q=solr&version=2.2&start=0&rows=10&i%0Andent=on>>
> <<response>
>
> -
> <http://localhost:8080/solr/select/?q=solr&version=2.2&start=0&rows=10&i
> ndent=on<http://localhost:8080/solr/select/?q=solr&version=2.2&start=0&rows=10&i%0Andent=on>>
> < <lst name="responseHeader">
>
> < <int name="status">0</int>
>
> < <int name="QTime">0</int>
>
> -
> <http://localhost:8080/solr/select/?q=solr&version=2.2&start=0&rows=10&i
> ndent=on<http://localhost:8080/solr/select/?q=solr&version=2.2&start=0&rows=10&i%0Andent=on>>
> < <lst name="params">
>
> < <str name="rows">10</str>
>
> < <str name="start">0</str>
>
> < <str name="indent">on</str>
>
> < <str name="q">solr</str>
>
> < <str name="version">2.2</str>
>
> </lst>
>
> </lst>
>
> < <result name="response" numFound="0" start="0" />
>
> </response>
>
> My question is what is the next step to search files on tomcat server?
>
>
>
Looks like you have not added any documents to Solr. See the "Indexing
Documents" section at http://wiki.apache.org/solr/#Search_and_Indexing
--
Regards,
Shalin Shekhar Mangar.
Re: search on tomcat server
Posted by Lance Norskog <go...@gmail.com>.
Solr comes with an example solr installation in the example/
directory. Run this, look at the README.txt file, index the xml files
in example/exampledocs, and do queries like 'disk' and 'memory'. And
read example/conf/schema.xml and example/conf/solrconfig.xml.
Most of the details of what solr does and how to set it up will be clear.
On 12/7/09, Sascha Szott <sz...@zib.de> wrote:
> Hi Jill,
>
> just to make sure your index contains at least one document, what is the
> output of
>
> <http://localhost:8080/solr/select?q=*:*&debugQuery=true&echoParams=all>
>
> Best,
> Sascha
>
> Jill Han wrote:
>> In fact, I just followed the instructions titled as Tomcat On Windows.
>> Here are the updates on my computer
>> 1. -Dsolr.solr.home=C:\solr\example
>> 2. change dataDir to <dataDir>C:\solr\example\data</dataDir> in
>> solrconfig.xml at C:\solr\example\conf
>> 3. created solr.xml at C:\Tomcat 5.5\conf\Catalina\localhost
>> <?xml version="1.0" encoding="utf-8"?>
>> <Context docBase="c:/solr/example/apache-solr-1.3.0.war" debug="0"
>> crossContext="true">
>> <Environment name="solr/home" type="java.lang.String"
>> value="c:/solr/example" override="true"/>
>> </Context>
>>
>> I restarted Tomcat, went to http://localhost:8080/solr/admin/
>> Entered video in Query String field, and got
>> /**********************************************
>> <?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">video</str>
>> <str name="version">2.2</str>
>> </lst>
>> </lst>
>> <result name="response" numFound="0" start="0" />
>> </response>
>> ********************************************/
>> My questions are
>> 1. is the setting correct?
>> 2. where does solr start to search words entered in Query String field
>> 3. how can I make result page like general searching result page, such as,
>> not found, if found, a url, instead of xml will be returned.
>>
>>
>> Thanks a lot for your helps,
>>
>> Jill
>>
>> -----Original Message-----
>> From: William Pierce [mailto:evalsinca@hotmail.com]
>> Sent: Friday, December 04, 2009 12:56 PM
>> To: solr-user@lucene.apache.org
>> Subject: Re: search on tomcat server
>>
>> Have you gone through the solr tomcat wiki?
>>
>> http://wiki.apache.org/solr/SolrTomcat
>>
>> I found this very helpful when I did our solr installation on tomcat.
>>
>> - Bill
>>
>> --------------------------------------------------
>> From: "Jill Han" <ji...@alverno.edu>
>> Sent: Friday, December 04, 2009 8:54 AM
>> To: <so...@lucene.apache.org>
>> Subject: RE: search on tomcat server
>> X-HOSTLOC: hermes.apache.org/140.211.11.3
>>
>>> I went through all the links on
>>> http://wiki.apache.org/solr/#Search_and_Indexing
>>> And still have no clue as how to proceed.
>>> 1. do I have to do some implementation in order to get solr to search
>>> doc.
>>> on tomcat server?
>>> 2. if I have files, such as .doc, docx, .pdf, .jsp, .html, etc under
>>> window xp, c:/tomcat/webapps/test1, /webapps/test2,
>>> What should I do to make solr search those directories
>>> 3. since I am using tomcat, instead of jetty, is there any demo that
>>> shows
>>> the solr searching features, and real searching result?
>>>
>>> Thanks,
>>> Jill
>>>
>>>
>>> -----Original Message-----
>>> From: Shalin Shekhar Mangar [mailto:shalinmangar@gmail.com]
>>> Sent: Monday, November 30, 2009 10:40 AM
>>> To: solr-user@lucene.apache.org
>>> Subject: Re: search on tomcat server
>>>
>>> On Mon, Nov 30, 2009 at 9:55 PM, Jill Han <ji...@alverno.edu> wrote:
>>>
>>>> I got solr running on the tomcat server,
>>>> http://localhost:8080/solr/admin/
>>>>
>>>> After I enter a search word, such as, solr, then hit Search button, it
>>>> will go to
>>>>
>>>> http://localhost:8080/solr/select/?q=solr&version=2.2&start=0&rows=10&in
>>>> dent=on<http://localhost:8080/solr/select/?q=solr&version=2.2&start=0&rows=10&in%0Adent=on>
>>>>
>>>> and display
>>>>
>>>> <?xml version="1.0" encoding="UTF-8" ?>
>>>>
>>>> -
>>>> <http://localhost:8080/solr/select/?q=solr&version=2.2&start=0&rows=10&i
>>>> ndent=on<http://localhost:8080/solr/select/?q=solr&version=2.2&start=0&rows=10&i%0Andent=on>>
>>>> <<response>
>>>>
>>>> -
>>>> <http://localhost:8080/solr/select/?q=solr&version=2.2&start=0&rows=10&i
>>>> ndent=on<http://localhost:8080/solr/select/?q=solr&version=2.2&start=0&rows=10&i%0Andent=on>>
>>>> < <lst name="responseHeader">
>>>>
>>>> < <int name="status">0</int>
>>>>
>>>> < <int name="QTime">0</int>
>>>>
>>>> -
>>>> <http://localhost:8080/solr/select/?q=solr&version=2.2&start=0&rows=10&i
>>>> ndent=on<http://localhost:8080/solr/select/?q=solr&version=2.2&start=0&rows=10&i%0Andent=on>>
>>>> < <lst name="params">
>>>>
>>>> < <str name="rows">10</str>
>>>>
>>>> < <str name="start">0</str>
>>>>
>>>> < <str name="indent">on</str>
>>>>
>>>> < <str name="q">solr</str>
>>>>
>>>> < <str name="version">2.2</str>
>>>>
>>>> </lst>
>>>>
>>>> </lst>
>>>>
>>>> < <result name="response" numFound="0" start="0" />
>>>>
>>>> </response>
>>>>
>>>> My question is what is the next step to search files on tomcat
>>>> server?
>>>>
>>>>
>>>>
>>> Looks like you have not added any documents to Solr. See the "Indexing
>>> Documents" section at http://wiki.apache.org/solr/#Search_and_Indexing
>>>
>>> --
>>> Regards,
>>> Shalin Shekhar Mangar.
>>>
>>
>
>
--
Lance Norskog
goksron@gmail.com
RE: search on tomcat server
Posted by Sascha Szott <sz...@zib.de>.
Hi Jill,
just to make sure your index contains at least one document, what is the
output of
<http://localhost:8080/solr/select?q=*:*&debugQuery=true&echoParams=all>
Best,
Sascha
Jill Han wrote:
> In fact, I just followed the instructions titled as Tomcat On Windows.
> Here are the updates on my computer
> 1. -Dsolr.solr.home=C:\solr\example
> 2. change dataDir to <dataDir>C:\solr\example\data</dataDir> in
> solrconfig.xml at C:\solr\example\conf
> 3. created solr.xml at C:\Tomcat 5.5\conf\Catalina\localhost
> <?xml version="1.0" encoding="utf-8"?>
> <Context docBase="c:/solr/example/apache-solr-1.3.0.war" debug="0"
> crossContext="true">
> <Environment name="solr/home" type="java.lang.String"
> value="c:/solr/example" override="true"/>
> </Context>
>
> I restarted Tomcat, went to http://localhost:8080/solr/admin/
> Entered video in Query String field, and got
> /**********************************************
> <?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">video</str>
> <str name="version">2.2</str>
> </lst>
> </lst>
> <result name="response" numFound="0" start="0" />
> </response>
> ********************************************/
> My questions are
> 1. is the setting correct?
> 2. where does solr start to search words entered in Query String field
> 3. how can I make result page like general searching result page, such as,
> not found, if found, a url, instead of xml will be returned.
>
>
> Thanks a lot for your helps,
>
> Jill
>
> -----Original Message-----
> From: William Pierce [mailto:evalsinca@hotmail.com]
> Sent: Friday, December 04, 2009 12:56 PM
> To: solr-user@lucene.apache.org
> Subject: Re: search on tomcat server
>
> Have you gone through the solr tomcat wiki?
>
> http://wiki.apache.org/solr/SolrTomcat
>
> I found this very helpful when I did our solr installation on tomcat.
>
> - Bill
>
> --------------------------------------------------
> From: "Jill Han" <ji...@alverno.edu>
> Sent: Friday, December 04, 2009 8:54 AM
> To: <so...@lucene.apache.org>
> Subject: RE: search on tomcat server
> X-HOSTLOC: hermes.apache.org/140.211.11.3
>
>> I went through all the links on
>> http://wiki.apache.org/solr/#Search_and_Indexing
>> And still have no clue as how to proceed.
>> 1. do I have to do some implementation in order to get solr to search
>> doc.
>> on tomcat server?
>> 2. if I have files, such as .doc, docx, .pdf, .jsp, .html, etc under
>> window xp, c:/tomcat/webapps/test1, /webapps/test2,
>> What should I do to make solr search those directories
>> 3. since I am using tomcat, instead of jetty, is there any demo that
>> shows
>> the solr searching features, and real searching result?
>>
>> Thanks,
>> Jill
>>
>>
>> -----Original Message-----
>> From: Shalin Shekhar Mangar [mailto:shalinmangar@gmail.com]
>> Sent: Monday, November 30, 2009 10:40 AM
>> To: solr-user@lucene.apache.org
>> Subject: Re: search on tomcat server
>>
>> On Mon, Nov 30, 2009 at 9:55 PM, Jill Han <ji...@alverno.edu> wrote:
>>
>>> I got solr running on the tomcat server,
>>> http://localhost:8080/solr/admin/
>>>
>>> After I enter a search word, such as, solr, then hit Search button, it
>>> will go to
>>>
>>> http://localhost:8080/solr/select/?q=solr&version=2.2&start=0&rows=10&in
>>> dent=on<http://localhost:8080/solr/select/?q=solr&version=2.2&start=0&rows=10&in%0Adent=on>
>>>
>>> and display
>>>
>>> <?xml version="1.0" encoding="UTF-8" ?>
>>>
>>> -
>>> <http://localhost:8080/solr/select/?q=solr&version=2.2&start=0&rows=10&i
>>> ndent=on<http://localhost:8080/solr/select/?q=solr&version=2.2&start=0&rows=10&i%0Andent=on>>
>>> <<response>
>>>
>>> -
>>> <http://localhost:8080/solr/select/?q=solr&version=2.2&start=0&rows=10&i
>>> ndent=on<http://localhost:8080/solr/select/?q=solr&version=2.2&start=0&rows=10&i%0Andent=on>>
>>> < <lst name="responseHeader">
>>>
>>> < <int name="status">0</int>
>>>
>>> < <int name="QTime">0</int>
>>>
>>> -
>>> <http://localhost:8080/solr/select/?q=solr&version=2.2&start=0&rows=10&i
>>> ndent=on<http://localhost:8080/solr/select/?q=solr&version=2.2&start=0&rows=10&i%0Andent=on>>
>>> < <lst name="params">
>>>
>>> < <str name="rows">10</str>
>>>
>>> < <str name="start">0</str>
>>>
>>> < <str name="indent">on</str>
>>>
>>> < <str name="q">solr</str>
>>>
>>> < <str name="version">2.2</str>
>>>
>>> </lst>
>>>
>>> </lst>
>>>
>>> < <result name="response" numFound="0" start="0" />
>>>
>>> </response>
>>>
>>> My question is what is the next step to search files on tomcat
>>> server?
>>>
>>>
>>>
>> Looks like you have not added any documents to Solr. See the "Indexing
>> Documents" section at http://wiki.apache.org/solr/#Search_and_Indexing
>>
>> --
>> Regards,
>> Shalin Shekhar Mangar.
>>
>
RE: search on tomcat server
Posted by Jill Han <ji...@alverno.edu>.
In fact, I just followed the instructions titled as Tomcat On Windows.
Here are the updates on my computer
1. -Dsolr.solr.home=C:\solr\example
2. change dataDir to <dataDir>C:\solr\example\data</dataDir> in solrconfig.xml at C:\solr\example\conf
3. created solr.xml at C:\Tomcat 5.5\conf\Catalina\localhost
<?xml version="1.0" encoding="utf-8"?>
<Context docBase="c:/solr/example/apache-solr-1.3.0.war" debug="0" crossContext="true">
<Environment name="solr/home" type="java.lang.String" value="c:/solr/example" override="true"/>
</Context>
I restarted Tomcat, went to http://localhost:8080/solr/admin/
Entered video in Query String field, and got
/**********************************************
<?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">video</str>
<str name="version">2.2</str>
</lst>
</lst>
<result name="response" numFound="0" start="0" />
</response>
********************************************/
My questions are
1. is the setting correct?
2. where does solr start to search words entered in Query String field
3. how can I make result page like general searching result page, such as, not found, if found, a url, instead of xml will be returned.
Thanks a lot for your helps,
Jill
-----Original Message-----
From: William Pierce [mailto:evalsinca@hotmail.com]
Sent: Friday, December 04, 2009 12:56 PM
To: solr-user@lucene.apache.org
Subject: Re: search on tomcat server
Have you gone through the solr tomcat wiki?
http://wiki.apache.org/solr/SolrTomcat
I found this very helpful when I did our solr installation on tomcat.
- Bill
--------------------------------------------------
From: "Jill Han" <ji...@alverno.edu>
Sent: Friday, December 04, 2009 8:54 AM
To: <so...@lucene.apache.org>
Subject: RE: search on tomcat server
X-HOSTLOC: hermes.apache.org/140.211.11.3
> I went through all the links on
> http://wiki.apache.org/solr/#Search_and_Indexing
> And still have no clue as how to proceed.
> 1. do I have to do some implementation in order to get solr to search doc.
> on tomcat server?
> 2. if I have files, such as .doc, docx, .pdf, .jsp, .html, etc under
> window xp, c:/tomcat/webapps/test1, /webapps/test2,
> What should I do to make solr search those directories
> 3. since I am using tomcat, instead of jetty, is there any demo that shows
> the solr searching features, and real searching result?
>
> Thanks,
> Jill
>
>
> -----Original Message-----
> From: Shalin Shekhar Mangar [mailto:shalinmangar@gmail.com]
> Sent: Monday, November 30, 2009 10:40 AM
> To: solr-user@lucene.apache.org
> Subject: Re: search on tomcat server
>
> On Mon, Nov 30, 2009 at 9:55 PM, Jill Han <ji...@alverno.edu> wrote:
>
>> I got solr running on the tomcat server,
>> http://localhost:8080/solr/admin/
>>
>> After I enter a search word, such as, solr, then hit Search button, it
>> will go to
>>
>> http://localhost:8080/solr/select/?q=solr&version=2.2&start=0&rows=10&in
>> dent=on<http://localhost:8080/solr/select/?q=solr&version=2.2&start=0&rows=10&in%0Adent=on>
>>
>> and display
>>
>> <?xml version="1.0" encoding="UTF-8" ?>
>>
>> -
>> <http://localhost:8080/solr/select/?q=solr&version=2.2&start=0&rows=10&i
>> ndent=on<http://localhost:8080/solr/select/?q=solr&version=2.2&start=0&rows=10&i%0Andent=on>>
>> <<response>
>>
>> -
>> <http://localhost:8080/solr/select/?q=solr&version=2.2&start=0&rows=10&i
>> ndent=on<http://localhost:8080/solr/select/?q=solr&version=2.2&start=0&rows=10&i%0Andent=on>>
>> < <lst name="responseHeader">
>>
>> < <int name="status">0</int>
>>
>> < <int name="QTime">0</int>
>>
>> -
>> <http://localhost:8080/solr/select/?q=solr&version=2.2&start=0&rows=10&i
>> ndent=on<http://localhost:8080/solr/select/?q=solr&version=2.2&start=0&rows=10&i%0Andent=on>>
>> < <lst name="params">
>>
>> < <str name="rows">10</str>
>>
>> < <str name="start">0</str>
>>
>> < <str name="indent">on</str>
>>
>> < <str name="q">solr</str>
>>
>> < <str name="version">2.2</str>
>>
>> </lst>
>>
>> </lst>
>>
>> < <result name="response" numFound="0" start="0" />
>>
>> </response>
>>
>> My question is what is the next step to search files on tomcat server?
>>
>>
>>
> Looks like you have not added any documents to Solr. See the "Indexing
> Documents" section at http://wiki.apache.org/solr/#Search_and_Indexing
>
> --
> Regards,
> Shalin Shekhar Mangar.
>
Re: search on tomcat server
Posted by William Pierce <ev...@hotmail.com>.
Have you gone through the solr tomcat wiki?
http://wiki.apache.org/solr/SolrTomcat
I found this very helpful when I did our solr installation on tomcat.
- Bill
--------------------------------------------------
From: "Jill Han" <ji...@alverno.edu>
Sent: Friday, December 04, 2009 8:54 AM
To: <so...@lucene.apache.org>
Subject: RE: search on tomcat server
> I went through all the links on
> http://wiki.apache.org/solr/#Search_and_Indexing
> And still have no clue as how to proceed.
> 1. do I have to do some implementation in order to get solr to search doc.
> on tomcat server?
> 2. if I have files, such as .doc, docx, .pdf, .jsp, .html, etc under
> window xp, c:/tomcat/webapps/test1, /webapps/test2,
> What should I do to make solr search those directories
> 3. since I am using tomcat, instead of jetty, is there any demo that shows
> the solr searching features, and real searching result?
>
> Thanks,
> Jill
>
>
> -----Original Message-----
> From: Shalin Shekhar Mangar [mailto:shalinmangar@gmail.com]
> Sent: Monday, November 30, 2009 10:40 AM
> To: solr-user@lucene.apache.org
> Subject: Re: search on tomcat server
>
> On Mon, Nov 30, 2009 at 9:55 PM, Jill Han <ji...@alverno.edu> wrote:
>
>> I got solr running on the tomcat server,
>> http://localhost:8080/solr/admin/
>>
>> After I enter a search word, such as, solr, then hit Search button, it
>> will go to
>>
>> http://localhost:8080/solr/select/?q=solr&version=2.2&start=0&rows=10&in
>> dent=on<http://localhost:8080/solr/select/?q=solr&version=2.2&start=0&rows=10&in%0Adent=on>
>>
>> and display
>>
>> <?xml version="1.0" encoding="UTF-8" ?>
>>
>> -
>> <http://localhost:8080/solr/select/?q=solr&version=2.2&start=0&rows=10&i
>> ndent=on<http://localhost:8080/solr/select/?q=solr&version=2.2&start=0&rows=10&i%0Andent=on>>
>> <<response>
>>
>> -
>> <http://localhost:8080/solr/select/?q=solr&version=2.2&start=0&rows=10&i
>> ndent=on<http://localhost:8080/solr/select/?q=solr&version=2.2&start=0&rows=10&i%0Andent=on>>
>> < <lst name="responseHeader">
>>
>> < <int name="status">0</int>
>>
>> < <int name="QTime">0</int>
>>
>> -
>> <http://localhost:8080/solr/select/?q=solr&version=2.2&start=0&rows=10&i
>> ndent=on<http://localhost:8080/solr/select/?q=solr&version=2.2&start=0&rows=10&i%0Andent=on>>
>> < <lst name="params">
>>
>> < <str name="rows">10</str>
>>
>> < <str name="start">0</str>
>>
>> < <str name="indent">on</str>
>>
>> < <str name="q">solr</str>
>>
>> < <str name="version">2.2</str>
>>
>> </lst>
>>
>> </lst>
>>
>> < <result name="response" numFound="0" start="0" />
>>
>> </response>
>>
>> My question is what is the next step to search files on tomcat server?
>>
>>
>>
> Looks like you have not added any documents to Solr. See the "Indexing
> Documents" section at http://wiki.apache.org/solr/#Search_and_Indexing
>
> --
> Regards,
> Shalin Shekhar Mangar.
>