[ 
https://issues.apache.org/jira/browse/SOLR-5125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hoss Man updated SOLR-5125:
---------------------------

    Attachment: SOLR-5125.patch

ok, so MoreLikeThisComponent.getMoreLikeThese was already pulling out 
MoreLikeThisParams.DOC_COUNT to use as rows, and already has the ResponeBuilder 
-- so in this page I just eliminated the "flags" argument from it's signature 
and pulled it from rb.getFieldFlags() instead.

So i think this should work -- but my quick attempts at verifying it with a 
test didn't work out...

* the only MLT Component test i can find is DistributedMLTComponentTest
* DistributedMLTComponentTest is currently {{@Ignored}}
* when i un-ignored DistributedMLTComponentTest it passed for me with and w/o 
the patch
* when i tried to change the test to use "mlt.count=100" everywhere, the test 
also passed both with and w/o the patch

...so either there is some other variable at play here that i'm missing, or 
this tests is useless -- i suspect maybe the later, it's not 100% clear to me 
what the test is doing, but it seems to only be verifying that the control 
client matches the distrib client -- but never verifies that anything useful is 
returned from either.
                
> Distributed MoreLikeThis fails with NullPointerException, shard query gives 
> EarlyTerminatingCollectorException
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-5125
>                 URL: https://issues.apache.org/jira/browse/SOLR-5125
>             Project: Solr
>          Issue Type: Bug
>          Components: MoreLikeThis
>    Affects Versions: 4.4
>            Reporter: Shawn Heisey
>             Fix For: 4.5, 5.0
>
>         Attachments: SOLR-5125.patch
>
>
> A distributed MoreLikeThis query that works perfectly on 4.2.1 is failing on 
> 4.4.0.  The original query returns a NullPointerException.  The Solr log 
> shows that the shard queries are throwing EarlyTerminatingCollectorException. 
>  Full details to follow in the comments.

--
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to