[prev in list] [next in list] [prev in thread] [next in thread] 

List:       solr-user
Subject:    Re: Problem with Solr and Nutch integration
From:       Anurag <anurag.it.jolly () gmail ! com>
Date:       2011-02-28 21:14:16
Message-ID: AANLkTi=EWeQ8Vj+kGBRtHwTb-E-Z_VVvbsy5het78Nwd () mail ! gmail ! com
[Download RAW message or body]


The above mentioned "requesthandler" lies in schema file or solrconfig file
of Solr?
I integrated solr and nutch and requesthandler lies in SolrConfig.xml.

This is my some content of my solrconfig.xml. As far as Jetty server is
concerned its working, don't know about solrtomcat.


<requestHandler name="/nutch" class="solr.SearchHandler" >
<lst name="defaults">
<str name="defType">dismax</str>
<str name="echoParams">explicit</str>
<float name="tie">0.01</float>
<str name="qf">
content^0.5 anchor^1.0 title^1.2
</str>
<str name="pf">
content^0.5 anchor^1.5 title^1.2 site^1.5
</str>
<str name="fl">
url
</str>
<str name="mm">
2&lt;-1 5&lt;-2 6&lt;90%
</str>
<int name="ps">100</int>
<bool hl="true"/>
<str name="q.alt">*:*</str>
<str name="hl.fl">title url content</str>
<str name="f.title.hl.fragsize">0</str>
<str name="f.title.hl.alternateField">title</str>
<str name="f.url.hl.fragsize">0</str>
<str name="f.url.hl.alternateField">url</str>
<str name="f.content.hl.fragmenter">regex</str>
</lst>
</requestHandler>
<requestHandler name="/nutch" class="solr.SearchHandler" >
<lst name="defaults">
<str name="defType">dismax</str>
<str name="echoParams">explicit</str>
<float name="tie">0.01</float>
<str name="qf">
content^0.5 anchor^1.0 title^1.2
</str>
<str name="pf">
content^0.5 anchor^1.5 title^1.2 site^1.5
</str>
<str name="fl">
url
</str>
<str name="mm">
2&lt;-1 5&lt;-2 6&lt;90%
</str>
<int name="ps">100</int>
<bool hl="true"/>
<str name="q.alt">*:*</str>
<str name="hl.fl">title url content</str>
<str name="f.title.hl.fragsize">0</str>
<str name="f.title.hl.alternateField">title</str>
<str name="f.url.hl.fragsize">0</str>
<str name="f.url.hl.alternateField">url</str>
<str name="f.content.hl.fragmenter">regex</str>
</lst>
</requestHandler>



But yeah deploying solr.war file in tomcat 6 on  my system works.


On Tue, Mar 1, 2011 at 1:56 AM, Paul Rogers [via Lucene] <
ml-node+2598137-98595181-146354@n3.nabble.com> wrote:

> Hi Anurag
> 
> Thanks for the prompt reply.
> 
> I'm following the tutorial at
> 
> http://www.lucidimagination.com/blog/2009/03/09/nutch-solr/
> 
> I have built solr and the example and added it to Tomcat as per
> 
> http://wiki.apache.org/solr/SolrTomcat
> 
> and this (solr-example) all appears to work fine (I can access the solr
> admin page at http://localhost:8080/solr-example/admin/<
> http://sol001:8080/solr-example/admin/>
> and
> search using the same).
> 
> I have copied the nutch schema.xml across and replaced the example one.
> Again everything seems to work fine.
> 
> However when I add the request handler:
> 
> <requestHandler name="/nutch" class="solr.SearchHandler" >
> <lst name="defaults">
> <str name="defType">dismax</str>
> <str name="echoParams">explicit</str>
> <float name="tie">0.01</float>
> <str name="qf">
> content^0.5 anchor^1.0 title^1.2
> </str>
> <str name="pf">
> content^0.5 anchor^1.5 title^1.2 site^1.5
> </str>
> <str name="fl">
> url
> </str>
> <str name="mm">
> 2<-1 5<-2 6<90%
> </str>
> <int name="ps">100</int>
> <bool hl="true"/>
> <str name="q.alt">*:*</str>
> <str name="hl.fl">title url content</str>
> <str name="f.title.hl.fragsize">0</str>
> <str name="f.title.hl.alternateField">title</str>
> <str name="f.url.hl.fragsize">0</str>
> <str name="f.url.hl.alternateField">url</str>
> <str name="f.content.hl.fragmenter">regex</str>
> </lst>
> </requestHandler>
> 
> 
> and restart the solr-example app under tomcat I get the following error:
> 
> HTTP Status 404 - missing core name in path
> ------------------------------
> 
> *type* Status report
> 
> *message* *missing core name in path*
> 
> *description* *The requested resource (missing core name in path) is not
> available.*
> *
> *
> As soon as I comment out the request handler the example appears to work
> again.
> 
> From the previous mentioned post I understand that this error is masking
> the
> actual error and I need to check the logs.  However I'm unsure exactly
> where
> these are located.
> 
> I was hoping if I could post them It'd allow you guys to suggest a
> solution.
> 
> Many thanks
> 
> 
> Paul
> On 28 February 2011 11:37, Anurag <[hidden \
> email]<http://user/SendEmail.jtp?type=node&node=2598137&i=0>> wrote:
> 
> > Solr uses jetty server  default, do u know that? you can run solr server
> > without using Tomcat (using jetty server).
> > Please describe the steps that led to the error. Which command u
> executed?
> > 
> > 
> 
> 
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> 
> http://lucene.472066.n3.nabble.com/Problem-with-Solr-and-Nutch-integration-tp2590334p2598137.html
>  To start a new topic under Solr - User, email
> ml-node+472068-1941297125-146354@n3.nabble.com
> To unsubscribe from Solr - User, click \
> here<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_b \
> y_code&node=472068&code=YW51cmFnLml0LmpvbGx5QGdtYWlsLmNvbXw0NzIwNjh8LTIwOTgzNDQxOTY=>.
>  
> 



-- 
Kumar Anurag


-----
Kumar Anurag

-- 
View this message in context: \
http://lucene.472066.n3.nabble.com/Problem-with-Solr-and-Nutch-integration-tp2590334p2598526.html
 Sent from the Solr - User mailing list archive at Nabble.com.



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic