Mikhail Khludnev created SOLR-9620:
--------------------------------------

             Summary: {!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


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

Reply via email to