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 <pranaya.beh...@igp.com>
wrote:

> 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 results in desc even if I am using score=max. How would
> I get it in the asc order ? Any suggestions where I am messing up?
>
>
> On Saturday 21 May 2016 12:03 AM, Mikhail Khludnev wrote:
>
>> 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 <pranaya.beh...@igp.com>
>> 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
>>> 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
>>>>>
>>>>>
>>>>>
>>
>


-- 
Sincerely yours
Mikhail Khludnev
Principal Engineer,
Grid Dynamics

<http://www.griddynamics.com>
<mkhlud...@griddynamics.com>

Reply via email to