Skip to content

Commit 52989b6

Browse files
authored
[Java Sync] P2 - Shift Java ToC (#617)
1 parent cdca362 commit 52989b6

31 files changed

+155
-146
lines changed

config/redirects

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ symlink: upcoming -> master
88
raw: ${prefix}/ -> ${base}/current/
99
raw: ${prefix}/master -> ${base}/upcoming/
1010

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

snooty.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ intersphinx = [
77
]
88

99
toc_landing_pages = [
10+
"/getting-started",
1011
"/connection",
1112
"/crud",
12-
"/fundamentals/builders",
13-
"/fundamentals/aggregation",
14-
"/usage-examples",
15-
"/fundamentals/builders/aggregates",
13+
"/crud/builders",
14+
"/data-formats",
15+
"/api-documentation"
1616
]
1717

1818
sharedinclude_root = "https://raw.githubusercontent.com/10gen/docs-shared/main/"

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
@@ -33,9 +33,7 @@ Use the ``MongoClients.create()`` method to construct a ``MongoClient``.
3333

3434
As each ``MongoClient`` represents a thread-safe pool of connections to the
3535
database, most applications only require a single instance of a
36-
``MongoClient``, even across multiple threads. To learn more about
37-
how connection pools work in the driver, see the :ref:`FAQ page <java-faq-connection-pool>`.
38-
36+
``MongoClient``, even across multiple threads.
3937
All resource usage limits, such as max connections, apply to individual
4038
``MongoClient`` instances.
4139

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
@@ -6,12 +6,12 @@ Builders
66

77
.. toctree::
88

9-
Aggregation </builders/aggregates>
10-
Filters </builders/filters>
11-
Indexes </builders/indexes>
12-
Projection </builders/projections>
13-
Sort </builders/sort>
14-
Update </builders/updates>
9+
Aggregation </crud/builders/aggregates>
10+
Filters </crud/builders/filters>
11+
Indexes </crud/builders/indexes>
12+
Projection </crud/builders/projections>
13+
Sort </crud/builders/sort>
14+
Update </crud/builders/updates>
1515

1616
.. contents:: On this page
1717
:local:
File renamed without changes.
File renamed without changes.

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

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

5+
.. facet::
6+
:name: genre
7+
:values: reference
58

9+
.. meta::
10+
:keywords: retrieve, size limit
11+
:description: Store large files with GridFS in the {+driver-long+}.
612

713
.. contents:: On this page
814
: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/fundamentals/builders/vector-search.txt

Lines changed: 0 additions & 106 deletions
This file was deleted.

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.

0 commit comments

Comments
 (0)