When you specify sort order, Solr makes no assumptions at all. So
sort = <key> asc would sort _only_ by key. Imagine how
puzzled people would be if they specify sort=<key> asc and... the result
was really ordered by score. Yuck.

So yes, you must specify both.

Best,
Erick

On Tue, Jul 24, 2018 at 11:37 PM, Dave Durbin <dav...@canva.com> wrote:
> Hi,
>
> For deep pagination, it is recommended that we use cursorMark and provide a 
> sort order for <key> as a tiebreaker.
>
> I want my results in relevancy order and so have no sort specified on my 
> query by default.
>
> Do I need to explicitly set :
>
>         sort : score desc, <key> asc
>
> Or can I get away with just :
>
>         sort = <key> asc
>
> and have Solr understand that the sort is only for tie break purposes?
>
>
> Thanks
> Dave
>
>
> --
> *P.S. We've launched a new blog to share the latest ideas and case studies
> from our team. Check it out here: product.canva.com
> <http://product.canva.com/>. ***
> ** <https://canva.com>Empowering the world
> to design
> Also, we're hiring. Apply here!
> <https://about.canva.com/careers/>
>  <https://twitter.com/canva>
> <https://facebook.com/canva> <https://au.linkedin.com/company/canva>
> <https://instagram.com/canva>
>
>
>
>
>

Reply via email to