Skip to content

Commit 8dc4642

Browse files
committed
Remove reference to text datatype
Replace with reference to string datatype.
1 parent 5a6a8bc commit 8dc4642

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

docs/client-concepts/high-level/analysis/writing-analyzers.asciidoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ image::analysis-chain.png[analysis chain]
3636

3737
==== Specifying an analyzer on a field mapping
3838

39-
An analyzer can be specified on a `text` datatype field mapping when creating a new field on a type, usually
39+
An analyzer can be specified on a `string` datatype field mapping when creating a new field on a type, usually
4040
when creating the type mapping at index creation time, but also when adding a new field
4141
using the Put Mapping API.
4242

@@ -102,6 +102,7 @@ var createIndexResponse = client.CreateIndex("my-index", c => c
102102
);
103103
----
104104
<1> Pre-defined list of English stopwords within Elasticsearch
105+
105106
<2> Use the `standard_english` analyzer configured
106107

107108
[source,javascript]
@@ -267,6 +268,7 @@ var createIndexResponse = client.CreateIndex("questions", c => c
267268
);
268269
----
269270
<1> Use an analyzer at index time that strips HTML tags
271+
270272
<2> Use an analyzer at search time that does not strip HTML tags
271273

272274
With this in place, the text of a question body will be analyzed with the `index_question` analyzer

docs/search/returned-fields.asciidoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ in how they work.
2828
==== Stored fields
2929

3030
When indexing a document, by default, Elasticsearch stores the originally sent JSON document in a special
31-
field called {ref_current}/mapping-source-field.html[_source]. The previous example demonstrated that the documents returned from
31+
field called {ref_current}/mapping-source-field.html[_source]. Documents returned from
3232
a search query are materialized from the `_source` field returned from Elasticsearch for each hit.
3333

3434
It is also possible to store a field from the JSON document _separately_ within Elasticsearch
@@ -113,7 +113,9 @@ var searchResponse = client.Search<Project>(s => s
113113
);
114114
----
115115
<1> **Include** the following fields
116+
116117
<2> **Exclude** the following fields
118+
117119
<3> Fields can be included or excluded through patterns
118120

119121
With source filtering specified on the request, `.Documents` will

src/Tests/ClientConcepts/HighLevel/Analysis/WritingAnalyzers.doc.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class WritingAnalyzers
3131
/**
3232
* ==== Specifying an analyzer on a field mapping
3333
*
34-
* An analyzer can be specified on a `text` datatype field mapping when creating a new field on a type, usually
34+
* An analyzer can be specified on a `string` datatype field mapping when creating a new field on a type, usually
3535
* when creating the type mapping at index creation time, but also when adding a new field
3636
* using the Put Mapping API.
3737
*

src/Tests/Search/ReturnedFields.doc.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class ReturnedFields : SerializationTestBase
2525
/**==== Stored fields
2626
*
2727
* When indexing a document, by default, Elasticsearch stores the originally sent JSON document in a special
28-
* field called {ref_current}/mapping-source-field.html[_source]. The previous example demonstrated that the documents returned from
28+
* field called {ref_current}/mapping-source-field.html[_source]. Documents returned from
2929
* a search query are materialized from the `_source` field returned from Elasticsearch for each hit.
3030
*
3131
* It is also possible to store a field from the JSON document _separately_ within Elasticsearch

0 commit comments

Comments
 (0)