Skip to content

Commit b3e4b01

Browse files
authored
DOCSP-29782: change how google sees change stream pages (#261)
1 parent f73dc9c commit b3e4b01

File tree

6 files changed

+24
-20
lines changed

6 files changed

+24
-20
lines changed

config/redirects

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@ define: versions 1.7 1.8 1.9 1.10 1.11 master
44

55
raw: ${prefix}/ -> ${base}/current/
66
raw: ${prefix}/stable -> ${base}/current/
7+
8+
[*-master]: ${prefix}/${version}/fundamentals/crud/read-operations/watch/ -> ${base}/${version}/fundamentals/crud/read-operations/changestream/
9+
[*-master]: ${prefix}/${version}/usage-examples/watch/ -> ${base}/${version}/usage-examples/changestream/

source/fundamentals/crud/read-operations.txt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ Read Operations
1616
- :ref:`golang-limit`
1717
- :ref:`golang-project`
1818
- :ref:`golang-search-text`
19-
- :ref:`golang-watch-changes`
20-
21-
..
22-
- :doc:`/fundamentals/crud/read-operations/geo`
19+
- :ref:`golang-monitor-changes`
2320

2421
.. toctree::
2522
:caption: Read Operations
@@ -34,6 +31,4 @@ Read Operations
3431
/fundamentals/crud/read-operations/limit
3532
/fundamentals/crud/read-operations/project
3633
/fundamentals/crud/read-operations/text
37-
/fundamentals/crud/read-operations/watch
38-
..
39-
/fundamentals/crud/read-operations/geo
34+
/fundamentals/crud/read-operations/changestream

source/fundamentals/crud/read-operations/watch.txt renamed to source/fundamentals/crud/read-operations/changestream.txt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
.. _golang-watch-changes:
2+
.. _golang-monitor-changes:
23

3-
=================
4-
Watch for Changes
5-
=================
4+
====================
5+
Monitor Data Changes
6+
====================
7+
8+
.. meta::
9+
:description: Learn about opening change streams and monitoring data changes in MongoDB by using the {+driver-long+}.
610

711
.. contents:: On this page
812
:local:
@@ -229,7 +233,7 @@ outputs the ``"fullDocument"`` value in the change event document.
229233
Additional Information
230234
----------------------
231235

232-
For a runnable example of a change stream, see :ref:`golang-watch`.
236+
For a runnable example of a change stream, see :ref:`golang-usageex-monitor-changes`.
233237

234238
For more information on change streams, see :manual:`Change Streams </changeStreams/>`.
235239

source/quick-reference.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,15 +243,15 @@ their related reference and API documentation.
243243

244244
.. output::
245245
:language: go
246-
:visible: false
246+
:visible: false
247247

248248
[{type Chrysanthemum}, {rating 5} ... ]
249249
[{type Oolong}, ... ]
250250

251-
* - | **Watch for Changes**
251+
* - | **Monitor Data Changes**
252252
|
253253
| `API Documentation <{+api+}/mongo#Collection.Watch>`__
254-
| :ref:`Usage Example <golang-watch>`
254+
| :ref:`Usage Example <golang-usageex-monitor-changes>`
255255

256256
- .. code-block:: go
257257
:copyable: true

source/usage-examples.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Usage Examples
1717
/usage-examples/find-operations
1818
/usage-examples/write-operations
1919
/usage-examples/bulkWrite
20-
/usage-examples/watch
20+
/usage-examples/changestream
2121
/usage-examples/count
2222
/usage-examples/distinct
2323
/usage-examples/command

source/usage-examples/watch.txt renamed to source/usage-examples/changestream.txt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
.. _golang-watch:
2+
.. _golang-usageex-monitor-changes:
23

3-
=================
4-
Watch for Changes
5-
=================
4+
====================
5+
Monitor Data Changes
6+
====================
67

7-
.. default-domain:: mongodb
8+
.. meta::
9+
:description: Learn by example: how to monitor data changes in MongoDB by using the {+driver-long+}.
810

911
You can open a change stream on a ``MongoCollection``,
1012
``MongoDatabase``, or ``MongoClient`` by using the ``Watch()`` method.
@@ -55,7 +57,7 @@ Additional Information
5557
To learn more about opening a change stream and handling
5658
potential errors, see:
5759

58-
- Fundamentals page on :ref:`change streams <golang-watch-changes>`
60+
- Fundamentals page on :ref:`change streams <golang-monitor-changes>`
5961
- MongoDB Server Manual :manual:`Change Streams Documentation </changeStreams>`
6062

6163
API Documentation

0 commit comments

Comments
 (0)