@@ -44,7 +44,7 @@ to perform exact matches on fields indexed in a MongoDB Atlas Search index.
44
44
45
45
>>> from django_mongodb_backend.expressions import SearchEquals
46
46
>>> Article.objects.annotate(score=SearchEquals(path="headline", value="title"))
47
- <QuerySet [<Article: Article object (6882f074359a4b191381b2e4) >]>
47
+ <QuerySet [<Article: headline: title >]>
48
48
49
49
The ``path `` argument can be either the name of a field (as a string), or a
50
50
:class: `~django.db.models.F ` instance. The ``value `` argument
@@ -389,7 +389,7 @@ The ``path`` argument specifies the field to filter and can be a string or a
389
389
Required arguments:
390
390
391
391
- ``relation ``: The spatial relation to test. Valid values include
392
- ``"within" ``, ``"intersects" ``, and ``"disjoint" ``.
392
+ ``"within" ``, ``"intersects" ``, and ``"disjoint" ``.
393
393
- ``geometry ``: A GeoJSON geometry object to compare against.
394
394
395
395
Optional:
@@ -436,7 +436,7 @@ Optional:
436
436
- ``score ``: An optional expression to adjust the relevance score.
437
437
438
438
``SearchGeoWithin `` expressions can be reused and combined with other search
439
- expressions.
439
+ expressions.
440
440
441
441
See also: :ref: `search-operations-combinable `.
442
442
@@ -506,15 +506,15 @@ Arguments:
506
506
- ``must ``: A list of expressions that **must ** match.
507
507
- ``must_not ``: A list of expressions that **must not ** match.
508
508
- ``should ``: A list of optional expressions that **should ** match.
509
- These can improve scoring.
509
+ These can improve scoring.
510
510
- ``filter ``: A list of expressions used for filtering without affecting
511
- relevance scoring.
511
+ relevance scoring.
512
512
- ``minimum_should_match ``: The minimum number of ``should `` clauses that
513
- must match.
513
+ must match.
514
514
- ``score ``: An optional expression to adjust the final score.
515
515
516
516
``CompoundExpression `` is useful for building advanced and flexible query
517
- logic in Atlas Search.
517
+ logic in Atlas Search.
518
518
519
519
See also: :ref: `search-operations-combinable `.
520
520
0 commit comments