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 Srinivas Rishindra <sr...@gmail.com> on 2015/04/22 11:45:30 UTC

MLT causing Problems

Hello,

I am working on a project in which i have to find similar documents.
While I implementing the following error is occurring. Please let me know
what to do.

Exception in thread "main"
org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error
from server at http://localhost:8980/solr/rishi: Expected mime type
application/octet-stream but got text/html. <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 404 Not Found</title>
</head>
<body><h2>HTTP ERROR 404</h2>
<p>Problem accessing /solr/rishi/mlt. Reason:
<pre>    Not Found</pre></p><hr /><i><small>Powered by
Jetty://</small></i><br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>

</body>
</html>

at
org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:525)
at
org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:233)
at
org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:225)
at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:135)
at org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:943)
at org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:958)
at MoreLikeThis.main(MoreLikeThis.java:31)

Re: MLT causing Problems

Posted by Erick Erickson <er...@gmail.com>.
Anything more informative in the Solr logs?

Best,
Erick



On Wed, Apr 22, 2015 at 2:45 AM, Srinivas Rishindra
<sr...@gmail.com> wrote:
> Hello,
>
> I am working on a project in which i have to find similar documents.
> While I implementing the following error is occurring. Please let me know
> what to do.
>
> Exception in thread "main"
> org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error
> from server at http://localhost:8980/solr/rishi: Expected mime type
> application/octet-stream but got text/html. <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
> <title>Error 404 Not Found</title>
> </head>
> <body><h2>HTTP ERROR 404</h2>
> <p>Problem accessing /solr/rishi/mlt. Reason:
> <pre>    Not Found</pre></p><hr /><i><small>Powered by
> Jetty://</small></i><br/>
> <br/>
> <br/>
> <br/>
> <br/>
> <br/>
> <br/>
> <br/>
> <br/>
> <br/>
> <br/>
> <br/>
> <br/>
> <br/>
> <br/>
> <br/>
> <br/>
> <br/>
> <br/>
> <br/>
>
> </body>
> </html>
>
> at
> org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:525)
> at
> org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:233)
> at
> org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:225)
> at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:135)
> at org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:943)
> at org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:958)
> at MoreLikeThis.main(MoreLikeThis.java:31)

Re: MLT causing Problems

Posted by Erick Erickson <er...@gmail.com>.
Looks like the "rishi" core is not loaded or
you really haven't configured the mlt handler
for rishi.

bq: no logs related to the core rishi are available

How can that be if the core is loaded?

<p>Problem accessing /solr/rishi/mlt. Reason:
<pre>    Not Found</pre></p><hr /><i><small>Powered by

So you need to show us your Solr config files

Best,
Erick

On Thu, Apr 23, 2015 at 2:52 AM, Srinivas Rishindra
<sr...@gmail.com> wrote:
> Dear Eric
> I have two solr cores one named as semi_final and the other rishi. when i
> use more like this function in semi_final core, it is giving the results,
> but it is throwing the problem accessing mlt  error in the core rishi. The
> schema and configuration of both rishi and semifinal are same. In server
> logs, no logs related to the core rishi are available. My main trouble is
> that I am not able to replicate the development code into deployment
> because of this error.
> Also how to find a particular document's ID? We need to give give the id of
> a document to morelikethis query right.
> Regards
> Srinivas Rishindra
>
> *Regards*
> *Birla Inst**itute of Technology & Science,* Pilani
> K K Birla Goa Campus
> Goa, India. 403 726
> Mobile: (+91)8600077149
> E.mail: f2011091@goa.bits-pilani.ac.in <su...@goa.bits-pilani.ac.in>
>
> On Wed, Apr 22, 2015 at 3:15 PM, Srinivas Rishindra <sr...@gmail.com>
> wrote:
>
>> Hello,
>>
>> I am working on a project in which i have to find similar documents.
>> While I implementing the following error is occurring. Please let me know
>> what to do.
>>
>> Exception in thread "main"
>> org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error
>> from server at http://localhost:8980/solr/rishi: Expected mime type
>> application/octet-stream but got text/html. <html>
>> <head>
>> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
>> <title>Error 404 Not Found</title>
>> </head>
>> <body><h2>HTTP ERROR 404</h2>
>> <p>Problem accessing /solr/rishi/mlt. Reason:
>> <pre>    Not Found</pre></p><hr /><i><small>Powered by
>> Jetty://</small></i><br/>
>> <br/>
>> <br/>
>> <br/>
>> <br/>
>> <br/>
>> <br/>
>> <br/>
>> <br/>
>> <br/>
>> <br/>
>> <br/>
>> <br/>
>> <br/>
>> <br/>
>> <br/>
>> <br/>
>> <br/>
>> <br/>
>> <br/>
>>
>> </body>
>> </html>
>>
>> at
>> org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:525)
>> at
>> org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:233)
>> at
>> org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:225)
>> at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:135)
>> at org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:943)
>> at org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:958)
>> at MoreLikeThis.main(MoreLikeThis.java:31)
>>
>>

Re: MLT causing Problems

Posted by Srinivas Rishindra <sr...@gmail.com>.
Dear Eric
I have two solr cores one named as semi_final and the other rishi. when i
use more like this function in semi_final core, it is giving the results,
but it is throwing the problem accessing mlt  error in the core rishi. The
schema and configuration of both rishi and semifinal are same. In server
logs, no logs related to the core rishi are available. My main trouble is
that I am not able to replicate the development code into deployment
because of this error.
Also how to find a particular document's ID? We need to give give the id of
a document to morelikethis query right.
Regards
Srinivas Rishindra

*Regards*
*Birla Inst**itute of Technology & Science,* Pilani
K K Birla Goa Campus
Goa, India. 403 726
Mobile: (+91)8600077149
E.mail: f2011091@goa.bits-pilani.ac.in <su...@goa.bits-pilani.ac.in>

On Wed, Apr 22, 2015 at 3:15 PM, Srinivas Rishindra <sr...@gmail.com>
wrote:

> Hello,
>
> I am working on a project in which i have to find similar documents.
> While I implementing the following error is occurring. Please let me know
> what to do.
>
> Exception in thread "main"
> org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error
> from server at http://localhost:8980/solr/rishi: Expected mime type
> application/octet-stream but got text/html. <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
> <title>Error 404 Not Found</title>
> </head>
> <body><h2>HTTP ERROR 404</h2>
> <p>Problem accessing /solr/rishi/mlt. Reason:
> <pre>    Not Found</pre></p><hr /><i><small>Powered by
> Jetty://</small></i><br/>
> <br/>
> <br/>
> <br/>
> <br/>
> <br/>
> <br/>
> <br/>
> <br/>
> <br/>
> <br/>
> <br/>
> <br/>
> <br/>
> <br/>
> <br/>
> <br/>
> <br/>
> <br/>
> <br/>
>
> </body>
> </html>
>
> at
> org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:525)
> at
> org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:233)
> at
> org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:225)
> at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:135)
> at org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:943)
> at org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:958)
> at MoreLikeThis.main(MoreLikeThis.java:31)
>
>