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

gopikannan venugopalsamy commented on SOLR-9217:
------------------------------------------------

[~mkhludnev], Thanks for the explanation, I was trying to assert behavior of 
join  with range query in filter() but it fails during parsing, The same join 
query works with out filter. Is this known?

http://localhost:8983/solr/techproducts/select?q=filter({!join%20from=id%20to=id}id:[1%20TO%205])

org.apache.solr.search.SyntaxError: Cannot parse 'id:[1': Encountered "<EOF>" 
at line 1, column 5. Was expecting one of: "TO" ... <RANGE_QUOTED> ... 
<RANGE_GOOP> ...

This works
http://localhost:8983/solr/techproducts/select?q={!join%20from=id%20to=id}id:[1%20TO%205]



> {!join score=..}.. should delay join to createWeight
> ----------------------------------------------------
>
>                 Key: SOLR-9217
>                 URL: https://issues.apache.org/jira/browse/SOLR-9217
>             Project: Solr
>          Issue Type: Improvement
>          Components: query parsers
>    Affects Versions: 6.1
>            Reporter: Mikhail Khludnev
>            Priority: Minor
>              Labels: newbie, newdev
>
> {{ScoreJoinQParserPlugin.XxxCoreJoinQuery}} executes 
> {{JoinUtil.createJoinQuery}} on {{rewrite()}}, but it's inefficient in 
> {{filter(...)}} syntax -or fq- (!) I suppose it's {{filter()}} only problem, 
> not fq. It's better to do that in {{createWeigh()}} as it's done in classic 
> Solr {{JoinQuery}}, {{JoinQParserPlugin}}.
> All existing tests is enough, we just need to assert rewrite behavior - it 
> should rewrite on enclosing range query or so, and doesn't on plain term 
> query.  



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to