[ https://issues.apache.org/jira/browse/SOLR-9620?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15787321#comment-15787321 ]
ASF subversion and git services commented on SOLR-9620: ------------------------------------------------------- Commit 6168a5d63e43efd4d193b9ad6fae1f372794a1c8 in lucene-solr's branch refs/heads/branch_6x from [~mkhludnev] [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=6168a5d ] SOLR-9620: fix cross core query time join by numeric fields > {!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 > Assignee: 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org