File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed 
source/includes/fundamentals/code-examples/atlas-search Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -326,7 +326,7 @@ public static List<Guitar> SearchAfter()
326326
327327        var  searchDefinition  =  Builders < Guitar > . Search . Text ( g =>  g . Description ,  "classic" ) ; 
328328        var  searchOptions  =  new  SearchOptions < Guitar > 
329-         {  IndexName  =  "default" ,  Sort  =  Builders < Guitar > . Sort . Ascending ( g =>  g . Id )  } 
329+         {  IndexName  =  "default" ,  Sort  =  Builders < Guitar > . Sort . Ascending ( g =>  g . Id )  } ; 
330330
331331        // Runs the base search operation 
332332        var  baseSearchResults  =  guitarsCollection . Aggregate ( ) 
@@ -339,7 +339,6 @@ public static List<Guitar> SearchAfter()
339339
340340        var  result  =  guitarsCollection . Aggregate ( ) 
341341            . Search ( searchDefinition ,  searchOptions ) 
342-             . Project < Guitar > ( projection ) 
343342            . ToList ( ) ; 
344343        // end-pagination-options 
345344
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments