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

Neeraj Lajpal commented on SOLR-6234:
-------------------------------------

I have a doubt regarding query time join.
Example:
I have the document structure like this:
parent1: id, important_category
child1: id, _root_,brandid
child2:id,_root_,brandid

_root_ field of child doc contains value of parent's id.

I want to use query time join. I want all the parent documents after applying 
boosts on children's fields and avg their scores, and then apply boost on 
important_category field on parent.
My query is like this without boost on parent's field:
{!scorejoin from=_root_ to=id score=avg multiVals=false}(brandid:1398^4 OR 
brandid:237^4.5)
It is working fine.

But, I want to apply boost to important_category field of parent also.
If I will use fq it will not impact score, so I have to use q only.
If I make q like :  important_category:322^4{!scorejoin from=_root_ to=id 
score=avg multiVals=false}(brandid:1398^4 OR brandid:237^4.5) 
it is not showing any results.
How can I do this?


> Scoring modes for query time join 
> ----------------------------------
>
>                 Key: SOLR-6234
>                 URL: https://issues.apache.org/jira/browse/SOLR-6234
>             Project: Solr
>          Issue Type: New Feature
>          Components: query parsers
>    Affects Versions: 5.3
>            Reporter: Mikhail Khludnev
>              Labels: features, patch, test
>             Fix For: 5.3
>
>         Attachments: SOLR-6234.patch, SOLR-6234.patch
>
>
> it adds {{scorejoin}} query parser which calls Lucene's JoinUtil underneath. 
> It supports:
> - {{score=none|avg|max|total}} local param (passed as ScoreMode to JoinUtil)
>  - {{score=none}} is *default*, eg if you *omit* this localparam 
> - supports {{b=100}} param to pass {{Query.setBoost()}}.
> - {{multiVals=true|false}} is introduced 
> - there is a test coverage for cross core join case. 
> - so far it joins string and multivalue string fields (Sorted, SortedSet, 
> Binary), but not Numerics DVs. follow-up LUCENE-5868  
> -there was a bug in cross core join, however there is a workaround for it- 
> it's fixed in Dec'14 patch.
> Note: the development of this patch was sponsored by an anonymous contributor 
> and approved for release under Apache License.



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