Skip to content

Commit 4a70156

Browse files
authored
Merge full-text search, security, concepts, ML commands pages (#1516)
1 parent cb225b0 commit 4a70156

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+1347
-1266
lines changed

aws/viewer-request/index.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,14 @@ const redirects = {
126126
// Redirect old reference-guide paths to models
127127
'/docs/surrealdb/reference-guide/graph-relations': '/docs/surrealdb/models/graph',
128128
'/docs/surrealdb/reference-guide/vector-search': '/docs/surrealdb/models/vector',
129+
'/docs/surrealdb/reference-guide/full-text-search': '/docs/surrealdb/models/full-text-search',
130+
'/docs/surrealdb/reference-guide/full_text_search': '/docs/surrealdb/models/full-text-search',
131+
'/docs/surrealdb/reference-guide/security-best-practices': '/docs/surrealdb/security/security-best-practices',
132+
'/docs/surrealdb/reference-guide/security_best_practices': '/docs/surrealdb/security/security-best-practices',
133+
// Redirect old concepts paths to single page
134+
'/docs/surrealdb/introduction/concepts/namespace': '/docs/surrealdb/introduction/concepts#system-structure',
135+
'/docs/surrealdb/introduction/concepts/database': '/docs/surrealdb/introduction/concepts#system-structure'
136+
129137
};
130138

131139
function compute(input) {

src/content/doc-cloud/connect/sdk.mdx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ After you have selected your SDK, you will need to provide your connection detai
3434

3535
When using any of the SurrealDB SDKs, before you can start querying your SurrealDB Cloud Instance, you will need to provide your connection details. SurrealDB requires **namespace** & **database** details so that it knows where to run and store your data. On the top of the dashboard, you can find the prompt to create a namespace and database.
3636

37-
Learn more about [namespaces](/docs/surrealdb/introduction/concepts/namespace) and [databases](/docs/surrealdb/introduction/concepts/database) in the SurrealDB documentation.
38-
39-
37+
Learn more about [namespaces and databases](/docs/surrealdb/introduction/concepts#system-structure) in the SurrealDB documentation.
4038

4139
### Create a root authentication
4240

@@ -63,7 +61,7 @@ src={{
6361

6462
After creating your root authentication, you will be able to authenticate with your SurrealDB Cloud Instance using any of the available SDKs.
6563

66-
If you want to create a Namespace and Database authentication for record-level access, you will need to first create a Namespace and Database. Learn more about [namespaces](/docs/surrealdb/introduction/concepts/namespace) and [databases](/docs/surrealdb/introduction/concepts/database) in the SurrealDB documentation.
64+
If you want to create a Namespace and Database authentication for record-level access, you will need to first create a Namespace and Database. Learn more about [namespaces and databases](/docs/surrealdb/introduction/concepts#system-structure) in the SurrealDB documentation.
6765

6866

6967
## Connect to your SurrealDB Cloud Instance

src/content/doc-sdk-dotnet/core/create-a-new-connection.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ When you connect with a HTTP connection (`http://`, `https://`), every request y
117117

118118
You can extend the session duration of a token or a session by setting the `DURATION` clause when creating a new access method with the [`DEFINE ACCESS METHOD`](/docs/surrealql/statements/define/access) statement or when defining a new user with the [`DEFINE USER`](/docs/surrealql/statements/define/user) statement.
119119

120-
Learn more about token and session duration in our [security best practices](/docs/surrealdb/reference-guide/security-best-practices#expiration) documentation.
120+
Learn more about token and session duration in our [security best practices](/docs/surrealdb/security/security-best-practices#expiration) documentation.
121121

122122
<br />
123123
## `.Connect()` {#connect}

src/content/doc-sdk-golang/connection-engines.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ When you connect with a HTTP connection (`http://`, `https://`), every request y
4242

4343
You can extend the session duration of a token or a session by setting the `DURATION` clause when creating a new access method with the [`DEFINE ACCESS METHOD`](/docs/surrealql/statements/define/access) statement or when defining a new user with the [`DEFINE USER`](/docs/surrealql/statements/define/user) statement.
4444

45-
Learn more about token and session duration in our [security best practices](/docs/surrealdb/reference-guide/security-best-practices#expiration) documentation.
45+
Learn more about token and session duration in our [security best practices](/docs/surrealdb/security/security-best-practices#expiration) documentation.
4646

4747
### Example of a secure connection
4848

src/content/doc-sdk-golang/core/handling-authentication.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,4 +280,4 @@ func ExampleDB_record_user_custom_struct() {
280280

281281
## Learn more
282282

283-
Learn more about authentication in SurrealDB in our [security best practices](/docs/surrealdb/reference-guide/security-best-practices#authentication) documentation and in the [security](/docs/surrealdb/security/authentication#expiration) section of the SurrealDB documentation.
283+
Learn more about authentication in SurrealDB in our [security best practices](/docs/surrealdb/security/security-best-practices#authentication) documentation and in the [security](/docs/surrealdb/security/authentication#expiration) section of the SurrealDB documentation.

src/content/doc-sdk-javascript/core/create-a-new-connection.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ While the `.connect()` method is the primary method to connect to a SurrealDB in
5151

5252
The `.connect()` method accepts a `url` and an `options` object. In the `options` object, you can specify the `namespace` and `database` to use, as well as the `auth` details which can be a token or a pair of credentials.
5353

54-
This means that the `.use()` method is not required if you specify the [`namespace`](/docs/surrealdb/introduction/concepts/namespace) and [`database`](/docs/surrealdb/introduction/concepts/database) in the `options` object. However, if you want to switch to a different namespace or database, you should use the [`.use()`](/docs/sdk/javascript/methods/use) method. Depending on the use case, you can also specify advanced custom logic for the connection.
54+
This means that the `.use()` method is not required if you specify the [namespace and database](/docs/surrealdb/introduction/concepts#system-structure) in the `options` object. However, if you want to switch to a different namespace or database, you should use the [`.use()`](/docs/sdk/javascript/methods/use) method. Depending on the use case, you can also specify advanced custom logic for the connection.
5555

5656
### Connection options
5757

@@ -140,7 +140,7 @@ When you connect with a HTTP connection (`http://`, `https://`), every request y
140140

141141
You can extend the session duration of a token or a session by setting the `DURATION` clause when creating a new access method with the [`DEFINE ACCESS METHOD`](/docs/surrealql/statements/define/access) statement or when defining a new user with the [`DEFINE USER`](/docs/surrealql/statements/define/user) statement.
142142

143-
Learn more about token and session duration in our [security best practices](/docs/surrealdb/reference-guide/security-best-practices#expiration) documentation.
143+
Learn more about token and session duration in our [security best practices](/docs/surrealdb/security/security-best-practices#expiration) documentation.
144144

145145
<br />
146146

src/content/doc-sdk-javascript/core/handling-authentication.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,4 +484,4 @@ await db.authenticate('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJTdXJyZWFs
484484
485485
## Learn more
486486
487-
Learn more about authentication in SurrealDB in our [security best practices](/docs/surrealdb/reference-guide/security-best-practices#authentication) documentation and in the [security](/docs/surrealdb/security/authentication#expiration) section of the SurrealDB documentation.
487+
Learn more about authentication in SurrealDB in our [security best practices](/docs/surrealdb/security/security-best-practices#authentication) documentation and in the [security](/docs/surrealdb/security/authentication#expiration) section of the SurrealDB documentation.

src/content/doc-sdk-javascript/start.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ You can still choose to start the database in your terminal and skip this step.
256256

257257
## Using SDK methods
258258

259-
Now that you have initialized the SDK, you can use it to connect to the database, using the specified [namespace](/docs/surrealdb/introduction/concepts/namespace) and [database](/docs/surrealdb/introduction/concepts/database), to perform queries anywhere in your application by calling the `getDb` function.
259+
Now that you have initialized the SDK, you can use it to connect to the database, using the specified [namespace and database](/docs/surrealdb/introduction/concepts#system-structure), to perform queries anywhere in your application by calling the `getDb` function.
260260

261261

262262
### Create a new user

src/content/doc-sdk-python/concepts/create-a-new-connection.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ When you connect with a HTTP connection (`http://`, `https://`), every request y
6666

6767
You can extend the session duration of a token or a session by setting the `DURATION` clause when creating a new access method with the [`DEFINE ACCESS METHOD`](/docs/surrealql/statements/define/access) statement or when defining a new user with the [`DEFINE USER`](/docs/surrealql/statements/define/user) statement.
6868

69-
Learn more about token and session duration in our [security best practices](/docs/surrealdb/reference-guide/security-best-practices#expiration) documentation.
69+
Learn more about token and session duration in our [security best practices](/docs/surrealdb/security/security-best-practices#expiration) documentation.
7070

7171
<br />
7272

src/content/doc-sdk-python/concepts/handling-authentication.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,4 +486,4 @@ db.authenticate('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJTdXJyZWFsREIiLC
486486

487487
## Learn more
488488

489-
Learn more about authentication in SurrealDB in our [security best practices](/docs/surrealdb/reference-guide/security-best-practices#authentication) documentation and in the [security](/docs/surrealdb/security/authentication#expiration) section of the SurrealDB documentation.
489+
Learn more about authentication in SurrealDB in our [security best practices](/docs/surrealdb/security/security-best-practices#authentication) documentation and in the [security](/docs/surrealdb/security/authentication#expiration) section of the SurrealDB documentation.

0 commit comments

Comments
 (0)