lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pranaya Behera <>
Subject Re: Sorting on child document field.
Date Thu, 19 May 2016 13:25:23 GMT
Example would be:
Lets say that I have a product document with regular fields as name, 
price, desc, is_parent. it has child documents such as
CA:: fields as a,b,c,rank
and another child document as
CB:: fields as  x,y,z.
I am using the query where {!parent which="is_parent:true"}a:some AND 
b:somethingelse , here only CA child document is used for searching no 
other child document has been touched. this CA has rank field. I want to 
sort the parents using this field.
Product contains multiple CA documents. But the query matches only one 
document exactly.

On Thursday 19 May 2016 04:09 PM, Pranaya Behera wrote:
> While searching in the lucene code base I found 
> /ToParentBlockJoinSortField /but its not in the solr or even in solrj 
> as well. How would I use it with solrj as I can't find anything to 
> query it through the UI.
> On Thursday 19 May 2016 11:29 AM, Pranaya Behera wrote:
>> Hi,
>>      How can I sort the results i.e. from a block join parent query 
>> using the field from child document field ?
>> Thanks & Regards
>> Pranaya Behera

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message