You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2014/01/27 16:57:10 UTC

[Solr Wiki] Update of "CommonQueryParameters" by YonikSeeley

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "CommonQueryParameters" page has been changed by YonikSeeley:
https://wiki.apache.org/solr/CommonQueryParameters?action=diff&rev1=53&rev2=54

Comment:
replace incorrect paging info (scoreDoc, etc)

  
  The default value is "`10`", which is used if the parameter is not specified.  If you want to tell Solr to return all possible results from the query without an upper bound, specify rows to be 10000000 or some other ridiculously large value that is higher than the possible number of rows that are expected.
  
- <<Anchor(pageDocpageScore)>>
+ <<Anchor(cursorMark)>>
  
- == pageDoc and pageScore ==
- <!> [[Solr4.0]] See https://issues.apache.org/jira/browse/SOLR-1726 If you expect to be paging deeply into the results (say beyond page 10, assuming rows=10) and you are sorting by score, you may wish to add the pageDoc and pageScore parameters to your request.  These two parameters tell Solr (and Lucene) what the last result (Lucene internal docid and score) of the previous page was, so that when scoring the query for the next set of pages, it can ignore any results that occur higher than that item.  To get the Lucene internal doc id, you will need to add [docid] to the &fl list.
- 
-  . Example: {{{q=*:*&start=10&pageDoc=5&pageScore=1.345&fl=[docid],score}}}
+ == Deep paging with cursorMark ==
+ <!> [[Solr4.7]] See https://issues.apache.org/jira/browse/SOLR-5463 If you expect to be paging deeply into the results (say beyond page 10, assuming rows=10).
+ Pass cursorMark=* on the first request and then solr will return a nextCursorMark that you can use as the value for cursorMark in your next request.
+ Here's a [[http://heliosearch.org/solr/paging-and-deep-paging/|full cursorMark deep paging example]]
  
  <<Anchor(fq)>>