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()
326
326
327
327
var searchDefinition = Builders < Guitar > . Search . Text ( g => g . Description , "classic" ) ;
328
328
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 ) } ;
330
330
331
331
// Runs the base search operation
332
332
var baseSearchResults = guitarsCollection . Aggregate ( )
@@ -339,7 +339,6 @@ public static List<Guitar> SearchAfter()
339
339
340
340
var result = guitarsCollection . Aggregate ( )
341
341
. Search ( searchDefinition , searchOptions )
342
- . Project < Guitar > ( projection )
343
342
. ToList ( ) ;
344
343
// end-pagination-options
345
344
You can’t perform that action at this time.
0 commit comments