Skip to content

Commit 791d27d

Browse files
committed
[Java Sync] P2 - Shift Java ToC (mongodb#617)
1 parent 4df955a commit 791d27d

30 files changed

+158
-39
lines changed

config/redirects

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ define: versions v4.3 v4.4 v4.5 v4.6 v4.7 v4.8 v4.9 v4.10 v4.11 v5.0 master
55
raw: ${prefix}/ -> ${base}/current/
66
raw: ${prefix}/master -> ${base}/upcoming/
77

8-
[*-master]: ${prefix}/${version}/fundamentals/versioned-api/ -> ${base}/${version}/fundamentals/stable-api/
8+
[*-v5.2]: ${prefix}/${version}/fundamentals/versioned-api/ -> ${base}/${version}/fundamentals/stable-api/
99
[*-v4.6]: ${prefix}/${version}/fundamentals/crud/read-operations/change-streams/ -> ${base}/${version}/fundamentals/crud/read-operations/retrieve/
1010
[*-master]: ${prefix}/${version}/fundamentals/csfle/ -> ${base}/${version}/fundamentals/encrypt-fields/
1111
[*-master]: ${prefix}/${version}/fundamentals/crud/write-operations/change-a-document/ -> ${base}/${version}/fundamentals/crud/write-operations/modify/
@@ -47,3 +47,25 @@ raw: ${prefix}/master -> ${base}/upcoming/
4747
[v5.3-master]: ${prefix}/${version}/fundamentals/connection/socks/ -> ${base}/${version}/connection/socks/
4848
[v5.3-master]: ${prefix}/${version}/fundamentals/connection/tls/ -> ${base}/${version}/security/tls/
4949
[v5.3-master]: ${prefix}/${version}/fundamentals/connection/jndi/ -> ${base}/${version}/connection/jndi/
50+
[v5.3-master]: ${prefix}/${version}/fundamentals/builders/ -> ${base}/${version}/crud/builders/
51+
[v5.3-master]: ${prefix}/${version}/fundamentals/builders/aggregates/ -> ${base}/${version}/crud/builders/aggregates/
52+
[v5.3-master]: ${prefix}/${version}/fundamentals/builders/filters/ -> ${base}/${version}/crud/builders/filters/
53+
[v5.3-master]: ${prefix}/${version}/fundamentals/builders/indexes/ -> ${base}/${version}/crud/builders/indexes/
54+
[v5.3-master]: ${prefix}/${version}/fundamentals/builders/projections/ -> ${base}/${version}/crud/builders/projections/
55+
[v5.3-master]: ${prefix}/${version}/fundamentals/builders/sort/ -> ${base}/${version}/crud/builders/sort/
56+
[v5.3-master]: ${prefix}/${version}/fundamentals/builders/updates/ -> ${base}/${version}/crud/builders/updates/
57+
[v5.3-master]: ${prefix}/${version}/fundamentals/builders/vector-search -> ${base}/${version}/atlas-vector-search/
58+
[v5.3-master]: ${prefix}/${version}/fundamentals/aggregation/ -> ${base}/${version}/crud/aggregation/
59+
[v5.3-master]: ${prefix}/${version}/fundamentals/aggregation-expression-operations/ -> ${base}/${version}/crud/aggregation-expression-operations/
60+
[v5.3-master]: ${prefix}/${version}/fundamentals/collations/ -> ${base}/${version}/crud/collations/
61+
[v5.3-master]: ${prefix}/${version}/fundamentals/stable-api/ -> ${base}/${version}/connection/stable-api/
62+
[v5.3-master]: ${prefix}/${version}/connection-troubleshooting/ -> ${base}/${version}/connection/connection-troubleshooting/
63+
[v5.3-master]: ${prefix}/${version}/fundamentals/gridfs/ -> ${base}/${version}/crud/gridfs/
64+
[v5.3-master]: ${prefix}/${version}/fundamentals/transactions/ -> ${base}/${version}/crud/transactions/
65+
[v5.3-master]: ${prefix}/${version}/fundamentals/time-series/ -> ${base}/${version}/data-formats/time-series/
66+
[v5.3-master]: ${prefix}/${version}/quick-start/ -> ${base}/${version}/getting-started/
67+
[v5.3-master]: ${prefix}/${version}/fundamentals/databases-collections/ -> ${base}/${version}/getting-started/databases-collections/
68+
[v5.3-master]: ${prefix}/${version}/integrations/ -> ${base}/${version}/getting-started/integrations/
69+
[v5.3-master]: ${prefix}/${version}/quick-reference/ -> ${base}/${version}/getting-started/quick-reference/
70+
[v5.3-master]: ${prefix}/${version}/fundamentals/enterprise-auth/ -> ${base}/${version}/security/enterprise-auth/
71+
[v5.3-master]: ${prefix}/${version}/connection/socks/ -> ${base}/${version}/security/socks/

snooty.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,14 @@ intersphinx = [
77
]
88

99
toc_landing_pages = [
10+
"/getting-started",
1011
"/connection",
1112
"/crud",
12-
"/fundamentals/builders",
13-
"/fundamentals/aggregation",
14-
"/usage-examples",
13+
"/aggregation",
14+
"/builders",
15+
"/data-formats",
16+
"reference",
17+
"/api-documentation"
1518
]
1619
sharedinclude_root = "https://raw.githubusercontent.com/10gen/docs-shared/main/"
1720

source/atlas-vector-search.txt

Lines changed: 88 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Atlas Vector Search
99
:values: reference
1010

1111
.. meta::
12-
:keywords: full text, text analyzer, meta, pipeline, scoring, Lucene, AI, artificial intelligence
12+
:keywords: full text, text analyzer, meta, pipeline, scoring, Lucene, AI, artificial intelligence, code example, semantic, nearest
1313
:description: Learn about how to use Atlas Vector Search in the {+driver-long+}.
1414

1515
.. contents:: On this page
@@ -18,5 +18,90 @@ Atlas Vector Search
1818
:depth: 2
1919
:class: singlecol
2020

21-
See :atlas:`Atlas Vector Search </atlas-vector-search/vector-search-overview/>`
22-
in the MongoDB Atlas documentation.
21+
Overview
22+
--------
23+
24+
In this guide, you can learn how to use the :atlas:`Atlas Vector Search
25+
</atlas-vector-search/vector-search-overview/>` feature
26+
in the {+driver-short+}. The ``Aggregates`` builders class provides the
27+
the ``vectorSearch()`` helper method that you can use to
28+
create a :atlas:`$vectorSearch </atlas-vector-search/vector-search-stage/>`
29+
pipeline stage. This pipeline stage allows you to perform a **semantic
30+
search** on your documents. A semantic search is a type of search which
31+
locates information that is similar in meaning, but not necessarily
32+
identical, to your provided search term or phrase.
33+
34+
.. important:: Feature Compatibility
35+
36+
To learn what versions of MongoDB Atlas support this feature, see
37+
:atlas:`Limitations </atlas-vector-search/vector-search-stage/#limitations>`
38+
in the MongoDB Atlas documentation.
39+
40+
Perform a Vector Search
41+
-----------------------
42+
43+
To use this feature, you must create a vector search index and index your
44+
vector embeddings. To learn about how to programmatically create a
45+
vector search index, see the :ref:`java-search-indexes` section in the
46+
Indexes guide. To learn more about vector embeddings, see
47+
:atlas:`How to Index Vector Embeddings for Vector Search
48+
</atlas-search/field-types/knn-vector/>` in the Atlas documentation.
49+
50+
After you create a vector search index on your vector embeddings, you
51+
can reference this index in your pipeline stage, as shown in the
52+
following section.
53+
54+
Vector Search Example
55+
~~~~~~~~~~~~~~~~~~~~~
56+
57+
The following example shows how to build an aggregation pipeline that uses the
58+
``vectorSearch()`` and ``project()`` methods to compute a vector search score:
59+
60+
.. literalinclude:: /includes/fundamentals/code-snippets/builders/AggBuilders.java
61+
:start-after: // begin vectorSearch
62+
:end-before: // end vectorSearch
63+
:language: java
64+
:dedent:
65+
66+
.. tip:: Query Vector Type
67+
68+
The preceding example creates an instance of ``BinaryVector`` to
69+
serve as the query vector, but you can also create a ``List`` of
70+
``Double`` instances. However, we recommend that you use the
71+
``BinaryVector`` type to improve storage efficiency.
72+
73+
The following example shows how you can run the aggregation and print
74+
the vector search meta-score from the result of the preceding
75+
aggregation pipeline:
76+
77+
.. literalinclude:: /includes/fundamentals/code-snippets/builders/AggBuilders.java
78+
:start-after: // begin vectorSearch-output
79+
:end-before: // end vectorSearch-output
80+
:language: java
81+
:dedent:
82+
83+
.. tip:: Java Driver Vector Search Examples
84+
85+
Visit the :atlas:`Atlas documentation </atlas-vector-search/tutorials/>`
86+
to find more tutorials on using the {+driver-short+} to perform Atlas
87+
Vector Searches.
88+
89+
API Documentation
90+
-----------------
91+
92+
To learn more about the methods and types mentioned in this
93+
guide, see the following API documentation:
94+
95+
- `Aggregates.vectorSearch()
96+
<{+api+}/apidocs/mongodb-driver-core/com/mongodb/client/model/Aggregates.html#vectorSearch(com.mongodb.client.model.search.FieldSearchPath,java.lang.Iterable,java.lang.String,long,com.mongodb.client.model.search.VectorSearchOptions)>`__
97+
98+
- `FieldSearchPath
99+
<{+api+}/apidocs/mongodb-driver-core/com/mongodb/client/model/search/FieldSearchPath.html>`__
100+
101+
- `VectorSearchOptions
102+
<{+api+}/apidocs/mongodb-driver-core/com/mongodb/client/model/search/VectorSearchOptions.html>`__
103+
104+
- `Projections.metaVectorSearchScore()
105+
<{+api+}/apidocs/mongodb-driver-core/com/mongodb/client/model/Projections.html#metaVectorSearchScore(java.lang.String)>`__
106+
107+
- `BinaryVector <{+api+}/apidocs/bson/org/bson/BinaryVector.html>`__

source/connection.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ Connection Guide
99
Connect to MongoDB </connection/connect>
1010
Connection Options </connection/connection-options>
1111
MongoClient Settings </connection/mongoclientsettings>
12+
Stable API </connection/stable-api>
1213
Network Compression </connection/network-compression>
13-
SOCKS5 Proxy </connection/socks>
1414
JNDI Datasource </connection/jndi>
15+
Connection Troubleshooting </connection/connection-troubleshooting>
1516
AWS Lambda <https://www.mongodb.com/docs/atlas/manage-connections-aws-lambda/>
1617

1718
.. contents:: On this page

source/connection/connect.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ Use the ``MongoClients.create()`` method to construct a ``MongoClient``.
2626

2727
As each ``MongoClient`` represents a thread-safe pool of connections to the
2828
database, most applications only require a single instance of a
29-
``MongoClient``, even across multiple threads. To learn more about
30-
how connection pools work in the driver, see the :ref:`FAQ page <java-faq-connection-pool>`.
31-
29+
``MongoClient``, even across multiple threads.
3230
All resource usage limits, such as max connections, apply to individual
3331
``MongoClient`` instances.
3432

source/connection-troubleshooting.txt renamed to source/connection/connection-troubleshooting.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ Connection Troubleshooting
3131
finding more resources
3232
- The `MongoDB Community Forums <{+communityForums+}>`__ for
3333
questions, discussions, or general technical support
34-
- The :ref:`Frequently Asked Questions (FAQ) <java-faq>` page for
35-
answers to common questions about the {+driver-short+}
3634

3735
.. replacement:: server-selection-timeout-error
3836

@@ -150,11 +148,6 @@ Connection Troubleshooting
150148

151149
``maxIdleTimeMS``
152150

153-
.. replacement:: connection-pools-learn-more
154-
155-
To learn more about how connection pooling works in the driver, see
156-
:ref:`java-faq-connection-pool` in the FAQ.
157-
158151
.. replacement:: scram-failure-error
159152

160153
.. code-block::
File renamed without changes.

source/crud.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ CRUD Operations
1111
Write </crud/write-operations>
1212
Query </crud/query-document>
1313
Compound Operations </crud/compound-operations>
14+
Transactions </crud/transactions>
15+
Builders </crud/builders>
16+
Aggregation </crud/aggregation>
17+
Aggregation Expressions </crud/aggregation-expression-operations>
18+
Collations </crud/collations>
19+
Large File Storage with GridFS </crud/gridfs>
1420

1521
CRUD (Create, Read, Update, Delete) operations enable you to work with
1622
data stored in MongoDB.
File renamed without changes.

source/fundamentals/builders.txt renamed to source/crud/builders.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ Builders
88

99
.. toctree::
1010

11-
Aggregation </builders/aggregates>
12-
Filters </builders/filters>
13-
Indexes </builders/indexes>
14-
Projection </builders/projections>
15-
Sort </builders/sort>
16-
Update </builders/updates>
11+
Aggregation </crud/builders/aggregates>
12+
Filters </crud/builders/filters>
13+
Indexes </crud/builders/indexes>
14+
Projection </crud/builders/projections>
15+
Sort </crud/builders/sort>
16+
Update </crud/builders/updates>
1717

1818
.. contents:: On this page
1919
:local:
File renamed without changes.
File renamed without changes.

source/fundamentals/gridfs.txt renamed to source/crud/gridfs.txt

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1-
======
2-
GridFS
3-
======
1+
==============================
2+
Large File Storage with GridFS
3+
==============================
44

55
.. default-domain:: mongodb
6+
.. facet::
7+
:name: genre
8+
:values: reference
9+
10+
.. meta::
11+
:keywords: retrieve, size limit
12+
:description: Store large files with GridFS in the {+driver-long+}.
613

714
.. contents:: On this page
815
:local:
File renamed without changes.

source/data-formats.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ Data Formats
1212
Extended JSON </data-formats/document-data-format-extended-json>
1313
Documents </data-formats/documents>
1414
POJOs </data-formats/document-data-format-pojo>
15-
Records </data-formats/document-data-format-record>
1615
POJO Customization </data-formats/pojo-customization>
16+
Records </data-formats/document-data-format-record>
1717
Codecs </data-formats/codecs>
18+
Time Series Collections </data-formats/time-series>
1819

1920
- :doc:`/data-formats/document-data-format-bson`
2021
- :doc:`/data-formats/document-data-format-extended-json`

source/quick-start.txt renamed to source/getting-started.txt

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.. _java-sync-quickstart:
22

3-
=======================
4-
Java Driver Quick Start
5-
=======================
3+
===============
4+
Getting Started
5+
===============
66

77
.. facet::
88
:name: genre
@@ -17,6 +17,14 @@ Java Driver Quick Start
1717
:depth: 2
1818
:class: singlecol
1919

20+
.. toctree::
21+
:titlesonly:
22+
:maxdepth: 1
23+
24+
Quick Reference </getting-started/quick-reference>
25+
Databases and Collections </getting-started/databases-collections>
26+
Integrations </getting-started/integrations>
27+
2028
Introduction
2129
------------
2230

File renamed without changes.

source/index.txt

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ MongoDB Java Driver
1717
:titlesonly:
1818
:maxdepth: 1
1919

20-
Getting Started </quick-start>
20+
Getting Started </getting-started>
2121
Connect </connection>
2222
CRUD Operations </crud>
2323
Data Formats </data-formats>
@@ -117,13 +117,6 @@ and links to the API documentation.
117117
* - `Legacy Java Driver <{+api+}/apidocs/mongodb-driver-legacy/index.html>`__
118118
- Legacy API
119119

120-
FAQ
121-
---
122-
123-
For answers to commonly asked questions about the MongoDB
124-
Java Driver, see the :doc:`Frequently Asked Questions (FAQ) </faq>`
125-
section.
126-
127120
Connection Troubleshooting
128121
--------------------------
129122

source/security.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Security
1010
:maxdepth: 1
1111

1212
Authentication </security/auth>
13+
Enterprise Authentication </security/enterprise-auth>
1314
In-Use Encryption </security/encrypt-fields>
1415
TLS/SSL </security/tls>
16+
SOCKS5 Proxy </security/socks>
1517
Validate Driver Artifact Signatures </security/validate-signatures>
File renamed without changes.

0 commit comments

Comments
 (0)