[ 
https://issues.apache.org/jira/browse/SOLR-6121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14073441#comment-14073441
 ] 

Ramkumar Aiyengar commented on SOLR-6121:
-----------------------------------------

Looking at this differently, should it be a requirement for the unique key to 
be present? May be my sort key is unique as well even if not the schema's 
unique key, or the chances of their being duplicates is so low that I am happy 
for that odd search to skip a result instead of every search incurring the 
overhead. Should we just allow any sort specification and probably error, and 
have an optional param which explicitly tells you that this is fine?

> cursorMark should accept sort without the uniqueKey
> ---------------------------------------------------
>
>                 Key: SOLR-6121
>                 URL: https://issues.apache.org/jira/browse/SOLR-6121
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: David Smiley
>            Priority: Minor
>
> If you are using the cursorMark (deep paging) feature, you shouldn't *have* 
> to add the uniqueKey to the sort parameter.  If the user doesn't do it, the 
> user obviously doesn't care about the uniqueKey order relative to whatever 
> other sort parameters they may or may not have provided.  So if sort doesn't 
> have it, then Solr should simply tack it on at the end instead of providing 
> an error and potentially confusing the user.  This would be more user 
> friendly.
> Quoting Hoss from 
> [SOLR-5463|https://issues.apache.org/jira/browse/SOLR-5463?focusedCommentId=14011384&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14011384]:
> {quote}
> The reason the code currently throws an error was because i figured it was 
> better to force the user to choose which tie breaker they wanted (asc vs 
> desc) then to just magically pick one arbitrarily.
> If folks think a magic default is a better i've got no serious objections – 
> just open a new issue.
> {quote}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to