You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Shawn Heisey (JIRA)" <ji...@apache.org> on 2013/08/08 19:17:49 UTC

[jira] [Commented] (SOLR-4414) MoreLikeThis on a shard finds no interesting terms if the document queried is not in that shard

    [ https://issues.apache.org/jira/browse/SOLR-4414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13733703#comment-13733703 ] 

Shawn Heisey commented on SOLR-4414:
------------------------------------

[~shalinmangar] I came across this issue while looking into my problems with distributed MoreLikeThis.  Things look a little off, so I'm writing this.

At a quick glance, the commit comment doesn't seem to be related to this issue, because it doesn't mention MLT at all.  Also, you have never commented on this issue outside the commit comment.  This is the issue number in CHANGES.txt, though.  Is the commit for this issue or another one?

If the commit is for this issue, I think this probably needs to be closed, fixed in 4.2 and 5.0.  If not, CHANGES.txt probably needs some cleanup.

                
> MoreLikeThis on a shard finds no interesting terms if the document queried is not in that shard
> -----------------------------------------------------------------------------------------------
>
>                 Key: SOLR-4414
>                 URL: https://issues.apache.org/jira/browse/SOLR-4414
>             Project: Solr
>          Issue Type: Bug
>          Components: MoreLikeThis, SolrCloud
>    Affects Versions: 4.1
>            Reporter: Colin Bartolome
>
> Running a MoreLikeThis query in a cloud works only when the document being queried exists in whatever shard serves the request. If the document is not present in the shard, no "interesting terms" are found and, consequently, no matches are found.
> h5. Steps to reproduce
> * Edit example/solr/collection1/conf/solrconfig.xml and add this line, with the rest of the request handlers:
> {code:xml}
> <requestHandler name="/mlt" class="solr.MoreLikeThisHandler" />
> {code}
> * Follow the [simplest SolrCloud example|http://wiki.apache.org/solr/SolrCloud#Example_A:_Simple_two_shard_cluster] to get two shards running.
> * Hit this URL: [http://localhost:8983/solr/collection1/mlt?mlt.fl=includes&q=id:3007WFP&mlt.match.include=false&mlt.interestingTerms=list&mlt.mindf=1&mlt.mintf=1]
> * Compare that output to that of this URL: [http://localhost:7574/solr/collection1/mlt?mlt.fl=includes&q=id:3007WFP&mlt.match.include=false&mlt.interestingTerms=list&mlt.mindf=1&mlt.mintf=1]
> The former URL will return a result and list some interesting terms. The latter URL will return no results and list no interesting terms. It will also show this odd XML element:
> {code:xml}
> <null name="response"/>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org