@@ -426,8 +426,8 @@ documents from the "joined" collection.
426
426
427
427
.. note::
428
428
429
- To perform a lookup, you must make both collections queryable using the
430
- ``AsQueryable`` method.
429
+ To perform a lookup, you must make both collections queryable by using the
430
+ ``AsQueryable() `` method.
431
431
432
432
To learn how to make a collection queryable, see :ref:`csharp-linq-queryable`.
433
433
@@ -445,7 +445,7 @@ The following ``Review`` class models the documents in the ``reviews`` collectio
445
445
:end-before: end-review-model
446
446
447
447
Select the :guilabel:`Method Syntax` or :guilabel:`Query Syntax` tab to see how
448
- to generate a ``$lookup`` stage using LINQ:
448
+ to generate a ``$lookup`` stage by using LINQ:
449
449
450
450
.. tabs::
451
451
@@ -477,25 +477,37 @@ reviews for that restaurant. A review matches a restaurant if the value of the
477
477
``name`` field in the review document matches the ``name`` field of the restaurant
478
478
document.
479
479
480
- The following is a subset of the returned results:
480
+ The following shows a subset of the returned results:
481
481
482
482
.. code-block:: json
483
483
484
484
// Results Truncated
485
485
486
- { "restaurant" : {
487
- "_id" : ObjectId("..."),
488
- "name" : "The Movable Feast",
489
- "restaurant_id" : "40361606",
490
- "cuisine" : "American",
491
- "address" : {...},
492
- "borough" : "Brooklyn",
493
- "grades" : [...] },
494
- "reviews" : [
495
- { "_id" : ObjectId(...), "restaurant_name" : "The Movable Feast", "reviewer" : "Lazlo Cravensworth", "review_text" : "Great restaurant! 12/10 stars!" },
496
- { "_id" : ObjectId("..."), "restaurant_name" : "The Movable Feast", "reviewer" : "Michael Scarn", "review_text" : "It really was a feast" }
497
- ]
498
- }
486
+ {
487
+ "restaurant": {
488
+ "_id": ObjectId("..."),
489
+ "name": "The Movable Feast",
490
+ "restaurant_id": "40361606",
491
+ "cuisine": "American",
492
+ "address": { ... },
493
+ "borough": "Brooklyn",
494
+ "grades": [ ... ]
495
+ },
496
+ "reviews": [
497
+ {
498
+ "_id": ObjectId("..."),
499
+ "restaurant_name": "The Movable Feast",
500
+ "reviewer": "Lazlo Cravensworth",
501
+ "review_text": "Great restaurant! 12/10 stars!"
502
+ },
503
+ {
504
+ "_id": ObjectId("..."),
505
+ "restaurant_name": "The Movable Feast",
506
+ "reviewer": "Michael Scarn",
507
+ "review_text": "It really was a feast"
508
+ }
509
+ ]
510
+ }
499
511
500
512
$vectorSearch
501
513
~~~~~~~~~~~~~
0 commit comments