Skip to content

Commit 0bcdc3e

Browse files
Milvus-doc-botMilvus-doc-bot
authored andcommitted
Release new docs to preview
1 parent e518f3e commit 0bcdc3e

File tree

6 files changed

+0
-191
lines changed

6 files changed

+0
-191
lines changed

v2.6.x/site/en/menuStructure/en.json

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -467,12 +467,6 @@
467467
"order": 10,
468468
"children": []
469469
},
470-
{
471-
"label": "TIMESTAMPTZ Field",
472-
"id": "timestamptz-field.md",
473-
"order": 11,
474-
"children": []
475-
},
476470
{
477471
"label": "Dynamic Field",
478472
"id": "enable-dynamic-field.md",
@@ -865,12 +859,6 @@
865859
"id": "rtree.md",
866860
"order": 3,
867861
"children": []
868-
},
869-
{
870-
"label": "STL_SORT",
871-
"id": "stl-sort.md",
872-
"order": 4,
873-
"children": []
874862
}
875863
]
876864
},

v2.6.x/site/en/userGuide/collections/modify-collection.md

Lines changed: 0 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,6 @@ You can modify collection-level properties after a collection is created.
147147
<td><p><code>allow_insert_auto_id</code></p></td>
148148
<td><p>Whether to allow a collection to accept user-provided primary key values when AutoID has been enabled for the collection.</p><ul><li><p>When set to <strong>"true"</strong>: Inserts, upserts, and bulk imports use the user-provided primary key if present; otherwise, primary key values are auto-generated.</p></li><li><p>When set to <strong>"false"</strong>: User-provided primary key values are rejected or ignored and primary key values are always auto-generated. The default is <strong>"false"</strong>.</p></li></ul></td>
149149
</tr>
150-
<tr>
151-
<td><p><code>collection.timezone</code></p></td>
152-
<td><p>Specifies the default timezone for this collection when handling time-sensitive operations, especially <code>TIMESTAMPTZ</code> fields. Timestamps are stored internally in UTC, and Milvus converts values for display and comparison according to this setting. If set, the collection timezone overrides the database’s default timezone; a query’s timezone parameter can temporarily override both. The value must be a valid <a href="https://en.wikipedia.org/wiki/List_of_tz_database_time_zones">IANA time zone identifier</a> (for example, <strong>Asia/Shanghai</strong>, <strong>America/Chicago</strong>, or <strong>UTC</strong>). For details on how to use a <code>TIMESTAMPTZ</code> field, refer to <a href="timestamptz-field.md">TIMESTAMPTZ Field</a>.</p></td>
153-
</tr>
154150
</table>
155151

156152
### Example 1: Set collection TTL
@@ -476,67 +472,6 @@ curl -X POST "http://localhost:19530/v2/vectordb/collections/alter_properties" \
476472
}'
477473
```
478474

479-
### Example 6: Set collection time zone | Milvus 2.6.4+
480-
481-
You can set a default time zone for your collection using the `collection.timezone` property. This determines how time-related data is interpreted and displayed for all operations within the collection, including data insertion, querying, and results presentation.
482-
483-
The value of `collection.timezone` must be a valid [IANA time zone identifier](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones), such as `Asia/Shanghai`, `America/Chicago`, or `UTC`. Using an invalid or non-standard value will result in an error when modifying the collection property.
484-
485-
The example below shows how to set the collection time zone to **Asia/Shanghai**:
486-
487-
<div class="multipleCode">
488-
<a href="#python">Python</a>
489-
<a href="#java">Java</a>
490-
<a href="#javascript">NodeJS</a>
491-
<a href="#go">Go</a>
492-
<a href="#bash">cURL</a>
493-
</div>
494-
495-
```python
496-
client.alter_collection_properties(
497-
collection_name="my_collection",
498-
# highlight-next-line
499-
properties={"collection.timezone": "Asia/Shanghai"}
500-
)
501-
```
502-
503-
```java
504-
Map<String, String> properties = new HashMap<>();
505-
properties.put("collection.timezone", "Asia/Shanghai");
506-
507-
AlterCollectionReq alterCollectionReq = AlterCollectionReq.builder()
508-
.collectionName("my_collection")
509-
.properties(properties)
510-
.build();
511-
512-
client.alterCollection(alterCollectionReq);
513-
```
514-
515-
```javascript
516-
// js
517-
```
518-
519-
```go
520-
err = client.AlterCollectionProperties(ctx, milvusclient.NewAlterCollectionPropertiesOption("my_collection").WithProperty(common.CollectionDefaultTimezone, true))
521-
if err != nil {
522-
fmt.Println(err.Error())
523-
// handle error
524-
}
525-
```
526-
527-
```bash
528-
# restful
529-
curl -X POST "http://localhost:19530/v2/vectordb/collections/alter_properties" \
530-
-H "Content-Type: application/json" \
531-
-H "Authorization: Bearer <token>" \
532-
-d '{
533-
"collectionName": "my_collection",
534-
"properties": {
535-
"collection.timezone": "Asia/Shanghai"
536-
}
537-
}'
538-
```
539-
540475
## Drop Collection Properties
541476

542477
You can also reset a collection property by dropping it as follows.

v2.6.x/site/en/userGuide/manage_databases.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -270,11 +270,6 @@ The following table lists possible database properties.
270270
<td><p>boolean</p></td>
271271
<td><p>Whether to force the specified database to deny reading operations.</p></td>
272272
</tr>
273-
<tr>
274-
<td><p><code>database.timezone</code></p></td>
275-
<td><p>string</p></td>
276-
<td><p>Specifies the default timezone applied to time-sensitive operations within the database, particularly for <code>TIMESTAMPTZ</code> fields. Collections inherit the database timezone unless a collection-level timezone is set. A query-level timezone parameter can temporarily override both database and collection defaults. The value must be a valid <a href="https://en.wikipedia.org/wiki/List_of_tz_database_time_zones">IANA time zone identifier</a> (for example, <strong>Asia/Shanghai</strong>, <strong>America/Chicago</strong>, or <strong>UTC</strong>). For details on how to use a <code>TIMESTAMPTZ</code> field, refer to <a href="timestamptz-field.md">TIMESTAMPTZ Field</a>.</p></td>
277-
</tr>
278273
</table>
279274

280275
### Alter database properties

v2.6.x/site/en/userGuide/search-query-get/get-and-scalar-query.md

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -739,47 +739,3 @@ if err != nil {
739739
# restful
740740
```
741741

742-
## Temporarily set a timezone for a query
743-
744-
If your collection has a `TIMESTAMPTZ` field, you can temporarily override the database or collection default timezone for a single operation by setting the `timezone` parameter in the query call. This controls how `TIMESTAMPTZ` values are displayed and compared during the operation.
745-
746-
The value of `timezone` must be a valid [IANA time zone identifier](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) (for example, **Asia/Shanghai**, **America/Chicago**, or **UTC**). For details on how to use a `TIMESTAMPTZ` field, refer to [TIMESTAMPTZ Field](timestamptz-field.md).
747-
748-
The example below shows how to temporarily set a timezone for a query operation:
749-
750-
<div class="multipleCode">
751-
<a href="#python">Python</a>
752-
<a href="#java">Java</a>
753-
<a href="#javascript">NodeJS</a>
754-
<a href="#go">Go</a>
755-
<a href="#bash">cURL</a>
756-
</div>
757-
758-
```python
759-
# Query data and display the tsz field converted to "America/Havana"
760-
results = client.query(
761-
collection_name,
762-
filter="id <= 10",
763-
output_fields=["id", "tsz", "vec"],
764-
limit=2,
765-
# highlight-next-line
766-
timezone="America/Havana",
767-
)
768-
```
769-
770-
```java
771-
// java
772-
```
773-
774-
```javascript
775-
// js
776-
```
777-
778-
```go
779-
// go
780-
```
781-
782-
```bash
783-
# restful
784-
```
785-

v2.6.x/site/en/userGuide/search-query-get/multi-vector-search.md

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -926,24 +926,3 @@ The following is the output:
926926

927927
With the `limit=2` parameter specified for the Hybrid Search, Milvus will rerank the six results obtained from the three searches. Ultimately, they will return only the top two most similar results.
928928

929-
## Advanced usage
930-
931-
### Temporarily set a timezone for a hybrid search
932-
933-
If your collection has a `TIMESTAMPTZ` field, you can temporarily override the database or collection default timezone for a single operation by setting the `timezone` parameter in the hybrid search call. This controls how `TIMESTAMPTZ` values are displayed and compared during the operation.
934-
935-
The value of `timezone` must be a valid [IANA time zone identifier](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) (for example, **Asia/Shanghai**, **America/Chicago**, or **UTC**). For details on how to use a `TIMESTAMPTZ` field, refer to [TIMESTAMPTZ Field](timestamptz-field.md).
936-
937-
The example below shows how to temporarily set a timezone for a hybrid search operation:
938-
939-
```python
940-
res = client.hybrid_search(
941-
collection_name="my_collection",
942-
reqs=reqs,
943-
ranker=ranker,
944-
limit=2,
945-
# highlight-next-line
946-
timezone="America/Havana",
947-
)
948-
```
949-

v2.6.x/site/en/userGuide/search-query-get/single-vector-search.md

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -972,50 +972,6 @@ curl --request POST \
972972
}'
973973
```
974974

975-
## Temporarily set a timezone for a search
976-
977-
If your collection has a `TIMESTAMPTZ` field, you can temporarily override the database or collection default timezone for a single operation by setting the `timezone` parameter in the search call. This controls how `TIMESTAMPTZ` values are displayed and compared during the operation.
978-
979-
The value of `timezone` must be a valid [IANA time zone identifier](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) (for example, **Asia/Shanghai**, **America/Chicago**, or **UTC**). For details on how to use a `TIMESTAMPTZ` field, refer to [TIMESTAMPTZ Field](timestamptz-field.md).
980-
981-
The example below shows how to temporarily set a timezone for a search operation:
982-
983-
<div class="multipleCode">
984-
<a href="#python">Python</a>
985-
<a href="#java">Java</a>
986-
<a href="#javascript">NodeJS</a>
987-
<a href="#go">Go</a>
988-
<a href="#bash">cURL</a>
989-
</div>
990-
991-
```python
992-
res = client.search(
993-
collection_name="quick_setup",
994-
anns_field="vector",
995-
data=[query_vector],
996-
limit=3,
997-
search_params={"metric_type": "IP"},
998-
# highlight-next-line
999-
timezone="America/Havana",
1000-
)
1001-
```
1002-
1003-
```java
1004-
// java
1005-
```
1006-
1007-
```javascript
1008-
// js
1009-
```
1010-
1011-
```go
1012-
// go
1013-
```
1014-
1015-
```bash
1016-
# restful
1017-
```
1018-
1019975
## Enhancing ANN Search
1020976

1021977
AUTOINDEX considerably flattens the learning curve of ANN searches. However, the search results may not always be correct as the top-K increases. By reducing the search scope, improving search result relevancy, and diversifying the search results, Milvus works out the following search enhancements.

0 commit comments

Comments
 (0)