Skip to content

Commit 939c3dc

Browse files
committed
Added analyzer link to indexes.rst and converted all fields_mappings -> field_mappings
1 parent 0859cf7 commit 939c3dc

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/ref/models/indexes.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ minutes, depending on the size of the collection.
4646
(substituting the name of your model as well as a different list index if
4747
your model has multiple indexes).
4848

49-
Use ``analyzer`` and ``search_analyzer`` to configure the indexing and
50-
searching analyzer, respectively, for the search index definition. If
51-
these options aren't provided, the server defaults to ``lucene.standard``.
52-
See ``definition["mappings"]["analyzer"]`` and
53-
``definition["mappings"]["searchAnalyzer"]`` in the
49+
Use :ref: `analyzer <atlas:atlas-search/analyzers>` and ``search_analyzer``
50+
to configure the indexing and searching analyzer, respectively, for the
51+
search index definition. If these options aren't provided, the server
52+
defaults to ``lucene.standard``. See ``definition["mappings"]["analyzer"]``
53+
and ``definition["mappings"]["searchAnalyzer"]`` in the
5454
:ref:`atlas:fts-static-mapping-example`).
5555

5656
.. versionchanged:: 5.2.2

tests/indexes_/test_search_indexes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def test_no_extra_kargs(self):
5454
SearchIndex(condition="")
5555

5656
def test_fields_and_field_mappings(self):
57-
msg = "Cannot provide fields and fields_mappings"
57+
msg = "Cannot provide fields and field_mappings"
5858
with self.assertRaisesMessage(ValueError, msg):
5959
SearchIndex(fields=["foo"], field_mappings={"foo": {}})
6060

0 commit comments

Comments
 (0)