From 97d96e220972aac15678713f7199a7d4db7d6c1f Mon Sep 17 00:00:00 2001
From: Dainius Jocas
Date: Thu, 27 Aug 2026 22:44:57 +0300
Subject: [PATCH 1/5] indexing language documentid docs
---
en/reference/writing/indexing-language.html | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/en/reference/writing/indexing-language.html b/en/reference/writing/indexing-language.html
index fdf46e8960..9994f647db 100644
--- a/en/reference/writing/indexing-language.html
+++ b/en/reference/writing/indexing-language.html
@@ -458,6 +458,16 @@ Other expressions
+
+ documentid [part] |
+
+
+ Exposes ID of the document being processed, or, given an optional
+ argument, a single structural part of it as a string.
+ Valid part values are: namespace, documenttype, group, number, specific
+
+ |
+
echo |
From 9fd16cd5cc2111c64b074293d77a2e700bc129d9 Mon Sep 17 00:00:00 2001
From: Dainius Jocas
Date: Thu, 27 Aug 2026 23:30:54 +0300
Subject: [PATCH 2/5] documentid example
---
en/writing/indexing.html | 31 ++++++++++++++++++++++++++++++-
1 file changed, 30 insertions(+), 1 deletion(-)
diff --git a/en/writing/indexing.html b/en/writing/indexing.html
index 0d79600ba3..1fd72493fc 100644
--- a/en/writing/indexing.html
+++ b/en/writing/indexing.html
@@ -137,6 +137,36 @@ Switch example
+documentid example
+
+
+ The documentid expression allows taking whole or
+ a portion of a document ID and making it searchable.
+ Common uses:
+
+ - Hashing document ID into a stable value for sorting or a tie-breaker
+ - Making the namespace searchable
+ - Eliminate duplication of document id as a field in feed requests
+
+
+schema doc {
+ document doc {
+ }
+ field stable_hash type int {
+ indexing: documentid | hash | attribute
+ }
+ field namespace type string {
+ indexing: documentid namespace | attribute
+ attribute: fast-search
+ }
+ field id type string {
+ indexing: documentid specific | attribute
+ attribute: fast-search
+ }
+}
+
+ Available since {% include version.html version="8.741.10" %}.
+
Indexing statements example
@@ -175,4 +205,3 @@ Indexing statements example
| field1 and field2 | field1 and field2 are updated |
-
From 2c9031513a6192cc34f800cfb21fdafd462fcb3e Mon Sep 17 00:00:00 2001
From: Kristian Aune
Date: Fri, 28 Aug 2026 08:21:51 +0200
Subject: [PATCH 3/5] Update en/writing/indexing.html
---
en/writing/indexing.html | 1 +
1 file changed, 1 insertion(+)
diff --git a/en/writing/indexing.html b/en/writing/indexing.html
index 1fd72493fc..69e7f3ff50 100644
--- a/en/writing/indexing.html
+++ b/en/writing/indexing.html
@@ -148,6 +148,7 @@ documentid example
Making the namespace searchable
Eliminate duplication of document id as a field in feed requests
+
schema doc {
document doc {
From f5fd6ea322b1e5d7801cf3eda4faaade99160e8f Mon Sep 17 00:00:00 2001
From: Kristian Aune
Date: Fri, 28 Aug 2026 08:21:58 +0200
Subject: [PATCH 4/5] Update en/writing/indexing.html
---
en/writing/indexing.html | 1 +
1 file changed, 1 insertion(+)
diff --git a/en/writing/indexing.html b/en/writing/indexing.html
index 69e7f3ff50..6b2512f1c3 100644
--- a/en/writing/indexing.html
+++ b/en/writing/indexing.html
@@ -166,6 +166,7 @@ documentid example
}
}
+
Available since {% include version.html version="8.741.10" %}.
From 446e5652aec317f65af610d6c77660cfd6ffbd8d Mon Sep 17 00:00:00 2001
From: Kristian Aune
Date: Fri, 28 Aug 2026 08:22:38 +0200
Subject: [PATCH 5/5] Apply suggestion from @kkraune
---
en/writing/indexing.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/en/writing/indexing.html b/en/writing/indexing.html
index 6b2512f1c3..604a76c743 100644
--- a/en/writing/indexing.html
+++ b/en/writing/indexing.html
@@ -143,12 +143,12 @@ documentid example
The documentid expression allows taking whole or
a portion of a document ID and making it searchable.
Common uses:
+
- Hashing document ID into a stable value for sorting or a tie-breaker
- Making the namespace searchable
- Eliminate duplication of document id as a field in feed requests
-
schema doc {
document doc {
|