You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Anshum Gupta (JIRA)" <ji...@apache.org> on 2016/04/22 02:33:13 UTC

[jira] [Commented] (SOLR-8769) CloudMLTQParser does not use uniqueKey field name for exclusion

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

Anshum Gupta commented on SOLR-8769:
------------------------------------

branch_5x
{code}
commit 8dc61cecdc933b52a8ec15eb34756e50ee2378ab
Author: anshum <an...@apache.org>
Date:   Thu Mar 3 15:27:04 2016 -0800

    SOLR-8769: Fix document exclusion in mlt query parser in Cloud mode for schemas that have non-'id' unique field
{code}
branch_5_5
{code}
commit 66f47a53f904bab2d845a1a3baf2e0090830cfc7
Author: anshum <an...@apache.org>
Date:   Thu Mar 3 15:27:04 2016 -0800

    SOLR-8769: Fix document exclusion in mlt query parser in Cloud mode for schemas that have non-'id' unique field
{code}


> CloudMLTQParser does not use uniqueKey field name for exclusion
> ---------------------------------------------------------------
>
>                 Key: SOLR-8769
>                 URL: https://issues.apache.org/jira/browse/SOLR-8769
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Erik Hatcher
>             Fix For: master, 6.0, 5.5.1
>
>
> Using the {{\{!mlt}}} query parser in cloud mode on a schema with a non-"id" uniqueKey, the main "like this" document won't be excluded properly due to this code:
> {code}
> realMLTQuery.add(createIdQuery("id", id), BooleanClause.Occur.MUST_NOT);
> {code}
> See also https://github.com/apache/lucene-solr/blob/813ca77250db29116812bc949e2a466a70f969a3/solr/core/src/java/org/apache/solr/search/mlt/CloudMLTQParser.java#L166
> Like SimpleMLTQParser, it needs to use the uniqueKey field with this type of code: {{req.getSchema().getUniqueKeyField().getName()}}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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