Skip to content

Commit 8921cf0

Browse files
MK Swansonjkakavas
authored andcommitted
[DOCS] Modified section headings, edited text for clarity. (#44988)
* [DOCS] Modified section headings, edited text for clarity. * [DOCS] Modified section headings, edited text for clarity. * [DOCS] Modified section headings, edited text for clarity.
1 parent 326c247 commit 8921cf0

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

docs/reference/analysis/analyzers/simple-analyzer.asciidoc

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[[analysis-simple-analyzer]]
22
=== Simple Analyzer
33

4-
The `simple` analyzer breaks text into terms whenever it encounters a
5-
character which is not a letter. All terms are lower cased.
4+
The `simple` analyzer breaks text into terms at any non-letter character, such
5+
as numbers, spaces, hyphens and apostrophes, discards non-letter characters,
6+
and changes uppercase to lowercase.
67

7-
[float]
8-
=== Example output
8+
==== Example
99

1010
[source,js]
1111
---------------------------
@@ -108,30 +108,30 @@ POST _analyze
108108
/////////////////////
109109

110110

111-
The above sentence would produce the following terms:
111+
The `simple` analyzer parses the sentence and produces the following
112+
terms:
112113

113114
[source,text]
114115
---------------------------
115116
[ the, quick, brown, foxes, jumped, over, the, lazy, dog, s, bone ]
116117
---------------------------
117118

118-
[float]
119-
=== Configuration
119+
==== Configure parameters
120120

121-
The `simple` analyzer is not configurable.
121+
The `simple` analyzer does not contain configurable parameters.
122122

123-
[float]
124-
=== Definition
123+
==== Customize
125124

126-
The `simple` analzyer consists of:
125+
The `simple` analyzer is defined by one tokenizer:
127126

128127
Tokenizer::
129128
* <<analysis-lowercase-tokenizer,Lower Case Tokenizer>>
130129

131-
If you need to customize the `simple` analyzer then you need to recreate
132-
it as a `custom` analyzer and modify it, usually by adding token filters.
133-
This would recreate the built-in `simple` analyzer and you can use it as
134-
a starting point for further customization:
130+
To customize the `simple` analyzer, duplicate it to create the basis for
131+
a `custom` analyzer. The new analyzer can be modified as required, usually by
132+
adding token filters.
133+
134+
===== Example
135135

136136
[source,js]
137137
----------------------------------------------------
@@ -152,4 +152,4 @@ PUT /simple_example
152152
----------------------------------------------------
153153
// CONSOLE
154154
// TEST[s/\n$/\nstartyaml\n - compare_analyzers: {index: simple_example, first: simple, second: rebuilt_simple}\nendyaml\n/]
155-
<1> You'd add any token filters here.
155+
<1> Add token filters here.

0 commit comments

Comments
 (0)