# Palavras em coreano não podem ser pesquisadas

**URL:** https://meta.discourse.org/t/korean-words-cant-be-searched/88410
**Category:** Support
**Created:** [Maio 24, 2018, 9:09pm UTC](https://meta.discourse.org/t/korean-words-cant-be-searched/88410 "2018-05-24T21:09:14Z")
**Posts on this page:** 17
**Page:** 2

<div class="post-metadata">

### Author: ![k11](https://avatars.discourse-cdn.com/v4/letter/k/8dc957/32.png) [@k11](https://meta.discourse.org/u/k11)
#### Post date: [Maio 26, 2018, 2:04am UTC](https://meta.discourse.org/t/korean-words-cant-be-searched/88410/21 "2018-05-26T02:04:24Z")

</div>

I don’t think it’s about spaces.  
No matter what I search for—공, 공을, or 공을 치다—the search never works for Korean.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [Maio 26, 2018, 2:06am UTC](https://meta.discourse.org/t/korean-words-cant-be-searched/88410/22 "2018-05-26T02:06:11Z")

</div>

Can you try changing `min search term length` in admin/site\_settings to 2 or even 1?

---

<div class="post-metadata">

### Author: ![schungx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schungx/32/70989_2.png) [@schungx](https://meta.discourse.org/u/schungx)
#### Post date: [Maio 26, 2018, 3:25am UTC](https://meta.discourse.org/t/korean-words-cant-be-searched/88410/23 "2018-05-26T03:25:28Z")

</div>

Discourse does have reasonable Chinese support. Can you first try with a Chinese post to see whether you can search for Chinese?

Possible result #1: Cannot search for Chinese – there is something wrong with the settings, because Chinese should work.

Possible result #2: Can search for Chinese – it may be the issue of not having a tokenizer for Korean.

---

<div class="post-metadata">

### Author: ![k11](https://avatars.discourse-cdn.com/v4/letter/k/8dc957/32.png) [@k11](https://meta.discourse.org/u/k11)
#### Post date: [Maio 26, 2018, 7:59am UTC](https://meta.discourse.org/t/korean-words-cant-be-searched/88410/24 "2018-05-26T07:59:58Z")

</div>

WTF it works with min search term length 1 LOL  
rofl thanks Sam LOL

---

<div class="post-metadata">

### Author: ![k11](https://avatars.discourse-cdn.com/v4/letter/k/8dc957/32.png) [@k11](https://meta.discourse.org/u/k11)
#### Post date: [Maio 26, 2018, 8:00am UTC](https://meta.discourse.org/t/korean-words-cant-be-searched/88410/25 "2018-05-26T08:00:51Z")

</div>

tested with chinese language too,  
chinese even worked before I set min search term lengh to 1

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [Maio 26, 2018, 8:12am UTC](https://meta.discourse.org/t/korean-words-cant-be-searched/88410/26 "2018-05-26T08:12:57Z")

</div>

I do not understand Korean. Can you clarify: do we need word splitting in Korean or not?

---

<div class="post-metadata">

### Author: ![k11](https://avatars.discourse-cdn.com/v4/letter/k/8dc957/32.png) [@k11](https://meta.discourse.org/u/k11)
#### Post date: [Maio 26, 2018, 8:14am UTC](https://meta.discourse.org/t/korean-words-cant-be-searched/88410/27 "2018-05-26T08:14:07Z")

</div>

I think I know why it didn’t work even with min search term length 2

 ![image](https://global.discourse-cdn.com/meta/original/3X/0/2/023979a15aab95445916cd24df668cd777abe918.png)

I never put empty space between syllable when search Korean words  
but the search terms showed in dashboard have space after every syllables…

so what I’m saying is

what I searched is 말랑 but the search query appeared in dashboard is 말 랑  
what I searched is 중국 but the search query appeared in dashboard is 중 국  
what I searched is 차트 but the search query appeared in dashboard is 차 트

this is why discourse couldn’t show any search result I think.  
How can I fix this lovely bug?

---

<div class="post-metadata">

### Author: ![k11](https://avatars.discourse-cdn.com/v4/letter/k/8dc957/32.png) [@k11](https://meta.discourse.org/u/k11)
#### Post date: [Maio 26, 2018, 8:17am UTC](https://meta.discourse.org/t/korean-words-cant-be-searched/88410/28 "2018-05-26T08:17:53Z")

</div>

I hope my reply above helps a bit to sort out the issue.

One more thing I want to say is:  
I think someone said earlier that the Korean language has no spaces, but we do.  
We use spaces just like English.

I am a handsome boy.  
나는 잘생긴 소년입니다.

나는 = I  
잘생긴 = handsome  
소년 = boy  
입니다 = am (sort of)

We still use spaces between words.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [Maio 26, 2018, 8:19am UTC](https://meta.discourse.org/t/korean-words-cant-be-searched/88410/29 "2018-05-26T08:19:21Z")

</div>

So we should remove all the splitting and just rely on space? Just confirming

---

<div class="post-metadata">

### Author: ![k11](https://avatars.discourse-cdn.com/v4/letter/k/8dc957/32.png) [@k11](https://meta.discourse.org/u/k11)
#### Post date: [Maio 26, 2018, 8:20am UTC](https://meta.discourse.org/t/korean-words-cant-be-searched/88410/30 "2018-05-26T08:20:09Z")

</div>

I don’t 100% understand what you mean but if you meant what I mean then yes.  
WTF am I saying LOL

---

<div class="post-metadata">

### Author: ![k11](https://avatars.discourse-cdn.com/v4/letter/k/8dc957/32.png) [@k11](https://meta.discourse.org/u/k11)
#### Post date: [Maio 26, 2018, 8:26am UTC](https://meta.discourse.org/t/korean-words-cant-be-searched/88410/31 "2018-05-26T08:26:05Z")

</div>

it works almost perfect when I set min search term length to 1.  
only 1 thing why it’s almost perfect but not perfect is

it literally catches all. I mean,  
if I search for 안녕하세요  
then it brings up not only 안녕하세요 but also 안 which is totally different.

it’s like when you search for ‘interesting’  
search results are not only ‘interesting’ but also ‘i’ which is not relevant at all.

But still ok part is that search result showing by the most relevant order so the bad results are far away 😛

---

<div class="post-metadata">

### Author: ![schungx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schungx/32/70989_2.png) [@schungx](https://meta.discourse.org/u/schungx)
#### Post date: [Maio 26, 2018, 9:58am UTC](https://meta.discourse.org/t/korean-words-cant-be-searched/88410/32 "2018-05-26T09:58:34Z")

</div>

In this case, it seems that you can just split by punctuation or white space in Korean (unless the Korean texts contain Chinese characters, which is rare in contemporary writing).

Japanese, unfortunately, is purely no-space though…

---

<div class="post-metadata">

### Author: ![fantasticfears](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fantasticfears/32/119608_2.png) [@fantasticfears](https://meta.discourse.org/u/fantasticfears)
#### Post date: [Maio 26, 2018, 6:23pm UTC](https://meta.discourse.org/t/korean-words-cant-be-searched/88410/33 "2018-05-26T18:23:32Z")

</div>

If word spacing is used, it is much easier to build the index since the algorithm can treat it like English. For better understanding, does Korean use some really common words to compose sentences even if they do not provide significant meaning? These are what we call stop words. We exclude them because they are extremely common and it is not useful to index them at all.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [Maio 27, 2018, 11:41pm UTC](https://meta.discourse.org/t/korean-words-cant-be-searched/88410/34 "2018-05-27T23:41:11Z")

</div>

@k11 try this commit out:

[https://github.com/discourse/discourse/commit/c677877e4fe5381f613279901f36ae255c909573](https://github.com/discourse/discourse/commit/c677877e4fe5381f613279901f36ae255c909573)

(upgrade once the tests passed)

It removes word segmentation from Korean and changes min search length to 2 for Korean and Japanese

---

<div class="post-metadata">

### Author: ![k11](https://avatars.discourse-cdn.com/v4/letter/k/8dc957/32.png) [@k11](https://meta.discourse.org/u/k11)
#### Post date: [Maio 27, 2018, 11:59pm UTC](https://meta.discourse.org/t/korean-words-cant-be-searched/88410/35 "2018-05-27T23:59:38Z")

</div>

thank you very much Sam I will go try now 🙂

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [Novembro 22, 2020, 2:44am UTC](https://meta.discourse.org/t/korean-words-cant-be-searched/88410/36 "2020-11-22T02:44:05Z")

</div>



---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [Novembro 22, 2020, 11:17pm UTC](https://meta.discourse.org/t/korean-words-cant-be-searched/88410/37 "2020-11-22T23:17:27Z")

</div>



[Previous page](https://meta.discourse.org/t/korean-words-cant-be-searched/88410.md?page=1)
