lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Khludnev (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SOLR-9620) {!join score=.. fromIndex=..} throws "undefined field" for numeric field if from and to schemas are different
Date Wed, 28 Dec 2016 15:20:58 GMT

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

Mikhail Khludnev updated SOLR-9620:
-----------------------------------
    Attachment: SOLR-9620.patch

> {!join score=.. fromIndex=..} throws "undefined field" for numeric field if from and
to schemas are different 
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-9620
>                 URL: https://issues.apache.org/jira/browse/SOLR-9620
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>    Affects Versions: 6.3
>            Reporter: Mikhail Khludnev
>         Attachments: SOLR-9620.patch
>
>
> numeric "from" field is mistakenly looked in "to" schema. see org.apache.solr.search.join.ScoreJoinQParserPlugin.....parse()
> {code}
>        private Query createQuery(final String fromField, final String fromQueryStr,
>                                  String fromIndex, final String toField, final ScoreMode
scoreMode,
>                                  boolean byPassShortCircutCheck) throws SyntaxError {
> +        FieldType.LegacyNumericType fromNumericType = req.getSchema().getField(fromField).getType().getNumericType();
> +        FieldType.LegacyNumericType toNumericType = req.getSchema().getField(toField).getType().getNumericType();
> {code}
> it's in branch_6x only. Users who are faced this are advised to just declare "from" field
in "to" schema. It should work. Take care.  
> one line fix and improvements for TestCrossCoreJoin.java are quite welcome. 
>  



--
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


Mime
View raw message