Re: Sorting on child document field.

2016-05-23 Thread Pranaya Behera
Hi Mikhail, Thanks. Missed it completely thought it would handle by default. On Monday 23 May 2016 02:08 PM, Mikhail Khludnev wrote: https://cwiki.apache.org/confluence/display/solr/Common+Query+Parameters#CommonQueryParameters-ThesortParameter sort=score asc On Mon, May 23,

Re: Sorting on child document field.

2016-05-23 Thread Mikhail Khludnev
https://cwiki.apache.org/confluence/display/solr/Common+Query+Parameters#CommonQueryParameters-ThesortParameter sort=score asc On Mon, May 23, 2016 at 11:17 AM, Pranaya Behera wrote: > Hi Mikhail, > I saw the blog post tried to do that with parent block > query {!parent} as I d

Re: Sorting on child document field.

2016-05-23 Thread Pranaya Behera
Hi Mikhail, I saw the blog post tried to do that with parent block query {!parent} as I dont have the reference for the parent in the child to use in the {!join}. This is my result. https://gist.github.com/shadow-fox/b728683b27a2f39d1b5e1aac54b7a8fb . This yields me the result

Re: Sorting on child document field.

2016-05-20 Thread Mikhail Khludnev
Hello, Check this http://blog-archive.griddynamics.com/2015/08/scoring-join-party-in-solr-53.html Let me know if you need further comments. On Thu, May 19, 2016 at 4:25 PM, Pranaya Behera wrote: > Example would be: > Lets say that I have a product document with regular fields as name, > price,

Re: Sorting on child document field.

2016-05-20 Thread Pranaya Behera
Adding lucene user mailing list to it. On Thursday 19 May 2016 06:55 PM, Pranaya Behera wrote: 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

Re: Sorting on child document field.

2016-05-19 Thread Pranaya Behera
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:so

Re: Sorting on child document field.

2016-05-19 Thread Pranaya Behera
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 th