Skip to content
This repository was archived by the owner on Sep 21, 2021. It is now read-only.

Commit 2c1bbc1

Browse files
Shubham Aggarwalpolyfractal
Shubham Aggarwal
authored andcommitted
Update 60_Sorting_and_collations.asciidoc (#494)
Fix typo "insentive" for "insensitive", and letter case in word "Böhm" used as example.
1 parent 8423ca2 commit 2c1bbc1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

220_Token_normalization/60_Sorting_and_collations.asciidoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ PUT /my_index
9999
as a single unchanged token.((("keyword tokenizer")))
100100
<2> The `lowercase` token filter lowercases the token.
101101

102-
With((("lowercase token filter"))) the `case_insentive_sort` analyzer in place, we can now use it in our
102+
With((("lowercase token filter"))) the `case_insensitive_sort` analyzer in place, we can now use it in our
103103
multifield:
104104

105105
[source,js]
@@ -131,7 +131,7 @@ PUT /my_index/user/3
131131
GET /my_index/user/_search?sort=name.lower_case_sort
132132
--------------------------------------------------
133133
<1> The `name.lower_case_sort` field will provide us with
134-
case-insentive sorting.
134+
case-insensitive sorting.
135135

136136
The preceding search request returns our documents in the order that we expect:
137137
`bailey`, `Boffey`, `BROWN`.
@@ -144,7 +144,7 @@ to the English alphabet.
144144
What if we were to add the German name _Böhm_?
145145

146146
Now our names would be returned in this order: `bailey`, `Boffey`, `BROWN`,
147-
`Böhm`. The reason that `böhm` comes after `BROWN` is that these words are
147+
`Böhm`. The reason that `Böhm` comes after `BROWN` is that these words are
148148
still being sorted by the values of the bytes used to represent them, and an
149149
`r` is stored as the byte `0x72`, while `ö` is stored as `0xF6` and so is
150150
sorted last. The byte value of each character is an accident of history.

0 commit comments

Comments
 (0)