I am new to solr and trying to understand a solr sort criteria that goes like this -
bQ01=2859969
bQ02={!term f=prdId v=$bQ01}
bQ03={!lucene} {!v=$bQ02}^=6
buryClearanceQuery={!parent which=$pq score=min v=$matchAllQueryRef2}
matchAllQueryRef2= ({!query v=$cq}) ({!simpleFilter v=$priceTypeClearance})
priceTypeClearance={!term f=priceType_refine v=$matchAllQueryRef3}
matchAllQueryRef3=Clearance
cq= {!simpleFilter v=docType:pdf} {!docValues v='shelf_873:1'}
sort=query($bQ03,0) desc, query($buryClearanceQuery) asc
I am facing issues understanding how the sort criteria is made above and how will query(some_expression, 0) desc
will work.
Any help is greatly appreciated.