title: How to implement MongoDB full text search pagination?
body: <p>Now that my search query returns more than 100 documents, How do I implement pagination for all returned documents ? Is there A way to implement it withing mongoDB or I have to fetch all results in the server memory and implement pagination ( which does not seems reasonable ). Note that CommandResult is returned not a DBCursor ! </p>
  
  <pre><code>    DBObject searchCommand = new BasicDBObject();
      searchCommand.put("text", collectionName);
      searchCommand.put("search", searchQuery);
  
      CommandResult commandResult = db.command(searchCommand);
  </code></pre>
  
  <p>Note: I am using Java. </p>