문서 메뉴

문서 홈애플리케이션 개발MongoDB 매뉴얼

데이터 정렬 로캘 및 기본 매개변수

이 페이지의 내용

  • 행동
  • 지원 언어 및 로캘
  • 데이터 정렬 기본 매개변수

데이터 정렬을 사용하면 대소문자 및 악센트 표시 규칙과 같은 문자열 비교에 대한 언어별 규칙을 지정할 수 있습니다.

일부 데이터 정렬 로케일에는 특수한 언어별 규칙을 사용하는 변형이 있습니다. 로케일 변형을 지정하려면 다음 구문을 사용하세요.

{ "locale" : "<locale code>@collation=<variant>" }

예를 들어 중국어 데이터 정렬의 unihan 변형을 사용하려면 다음을 수행하세요.

{ "locale" : "zh@collation=unihan" }

데이터 정렬 동작 및 구문에 대한 자세한 설명은 데이터 정렬 페이지를 참조하세요.

MongoDB의 데이터 정렬 기능은 다음 언어를 지원합니다. 다음 표에는 ICU 국가 및 언어 설정 ID 에 정의된 대로 지원되는 국가 및 언어 설정이 나열되어 있습니다. . [1]

Language
로캘
변형
아프리칸스어
af
알바니아어
sq
암하라어
am
아랍어
ar
compat
아르메니아어
hy
아삼어
as
아제리어
az
search
벵골어
bn
벨로루시어
be
벵골어
bn
traditional
보스니아어
bs
search
보스니아어(키릴 문자)
bs_Cyrl
불가리아어
bg
버마어
my
카탈루냐어
ca
search
체로키어
chr
중국어
zh
big5han
gb2312han
unihan
zhuyin
중국어(번체)
zh_Hant
크로아티아어
hr
search
체코어
cs
search
덴마크어
da
search
네덜란드어
nl
종카어
dz
English
en
영어(미국)
en_US
영어(미국, 컴퓨터)
en_US_POSIX
에스페란토
eo
에스토니아어
et
에웨어
ee
페로어
fo
필리핀어
fil
핀란드어
fi
search
traditional
프랑스어
fr
프랑스어(캐나다)
fr_CA
갈리시아어
gl
search
그루지야어
ka
독일어
de
search
eor
phonebook
독일어(오스트리아)
de_AT
phonebook
그리스어
el
구자라트어
gu
하우사어
ha
하와이어
haw
히브리어
he
search
힌디어
hi
헝가리어
hu
아이슬란드어
is
search
이보어
ig
이나리 사미
smn
search
인도네시아어
id
아일랜드어
ga
이탈리아어
it
일본어
ja
unihan
Language
로캘
변형
그린란드어
kl
search
칸나다어
kn
traditional
카자흐어
kk
크메르어
km
콩카니어
kok
한국어
ko
search
searchjl
unihan
키르기스어
ky
라코타어
lkt
라오스어
lo
라트비아어
lv
링갈라어
ln
phonetic
리투아니아어
lt
저지 소르브어
dsb
룩셈부르크어
lb
마케도니아어
mk
말레이어
ms
말라얄람어
ml
몰타어
mt
마라타어
mr
몽골어
mn
네팔어
ne
북부 사미어
se
search
노르웨이 부크몰어
nb
search
노르웨이어(니노르스크)
nn
search
오리야어
or
오로모어
om
파슈토어
ps
페르시아어
fa
페르시아어(아프가니스탄)
fa_AF
폴란드어
pl
포르투갈어
pt
펀자브어
pa
루마니아어
ro
러시아어
ru
세르비아어
sr
세르비아어(라틴)
sr_Latn
search
신할라
si
dictionary
슬로바키아어
sk
search
슬로베니아어
sl
스페인어
es
search
traditional
스와힐리어
sw
스웨덴어
sv
search
타밀어
ta
텔루구어
te
태국어
th
티베트어
bo
통가어
to
터키어
tr
search
우크라이나어
uk
고지 소르브어
hsb
우르두어
ur
위구르어
ug
베트남어
vi
traditional
발저어
wae
웨일스어
cy
이디시어
yi
search
요루바아
yo
줄루어
zu

단순 이진 비교를 명시적으로 지정하려면 "simple"locale 값을 지정합니다.

[1] 국가 및 언어 설정에 대한 지원을 요청하려면 서버 프로젝트 에 JIRA 티켓을 제출하세요.

데이터 정렬 문서에는 필수 locale 매개변수 외에 몇 가지 선택적 매개변수가 포함되어 있습니다. 사용하는 locale에 따라 기본 매개변수가 다를 수 있습니다. 데이터 정렬 구문에 대한 자세한 설명은 데이터 정렬 페이지를 참조하세요.

다음 기본 매개 변수는 모든 로케일에서 일관되게 적용됩니다.

  • caseLevel : false

  • strength : 3

  • numericOrdering : false

  • maxVariable : punct

다음 표에서는 로케일에 따라 달라질 수 있는 기본 데이터 정렬 매개변수를 보여줍니다.

로캘
caseFirst
대체
정규화
이전
af
off
non-ignorable
FALSE
FALSE
sq
off
non-ignorable
FALSE
FALSE
am
off
non-ignorable
FALSE
FALSE
ar
off
non-ignorable
FALSE
FALSE
ar@collation=compat
off
non-ignorable
FALSE
FALSE
hy
off
non-ignorable
FALSE
FALSE
as
off
non-ignorable
TRUE
FALSE
az
off
non-ignorable
FALSE
FALSE
az@collation=search
off
non-ignorable
TRUE
FALSE
be
off
non-ignorable
FALSE
FALSE
bn
off
non-ignorable
TRUE
FALSE
bn@collation=traditional
off
non-ignorable
TRUE
FALSE
bs
off
non-ignorable
FALSE
FALSE
bs@collation=search
off
non-ignorable
TRUE
FALSE
bs_Cyrl
off
non-ignorable
FALSE
FALSE
bg
off
non-ignorable
FALSE
FALSE
my
off
non-ignorable
TRUE
FALSE
ca
off
non-ignorable
FALSE
FALSE
ca@collation=search
off
non-ignorable
TRUE
FALSE
chr
off
non-ignorable
FALSE
FALSE
zh
off
non-ignorable
FALSE
FALSE
zh@collation=big5han
off
non-ignorable
FALSE
FALSE
zh@collation=gb2312han
off
non-ignorable
FALSE
FALSE
zh@collation=unihan
off
non-ignorable
FALSE
FALSE
zh@collation=zhuyin
off
non-ignorable
FALSE
FALSE
zh_Hant
off
non-ignorable
FALSE
FALSE
hr
off
non-ignorable
FALSE
FALSE
hr@collation=search
off
non-ignorable
TRUE
FALSE
cs
off
non-ignorable
FALSE
FALSE
cs@collation=search
off
non-ignorable
TRUE
FALSE
da
upper
non-ignorable
FALSE
FALSE
da@collation=search
off
non-ignorable
TRUE
FALSE
nl
off
non-ignorable
FALSE
FALSE
dz
off
non-ignorable
FALSE
FALSE
en
off
non-ignorable
FALSE
FALSE
en_US_POSIX
off
non-ignorable
FALSE
FALSE
en_US
off
non-ignorable
FALSE
FALSE
eo
off
non-ignorable
FALSE
FALSE
et
off
non-ignorable
FALSE
FALSE
ee
off
non-ignorable
FALSE
FALSE
fo
off
non-ignorable
FALSE
FALSE
fo@collation=search
off
non-ignorable
TRUE
FALSE
fil
off
non-ignorable
FALSE
FALSE
fi
off
non-ignorable
FALSE
FALSE
fi@collation=search
off
non-ignorable
TRUE
FALSE
fi@collation=traditional
off
non-ignorable
FALSE
FALSE
fr
off
non-ignorable
FALSE
FALSE
fr_CA
off
non-ignorable
FALSE
TRUE
gl
off
non-ignorable
FALSE
FALSE
gl@collation=search
off
non-ignorable
TRUE
FALSE
ka
off
non-ignorable
FALSE
FALSE
de
off
non-ignorable
FALSE
FALSE
de@collation=search
off
non-ignorable
TRUE
FALSE
de@collation=phonebook
off
non-ignorable
FALSE
FALSE
de@collation=eor
off
non-ignorable
FALSE
FALSE
de_AT
off
non-ignorable
FALSE
FALSE
de_AT@collation=phonebook
off
non-ignorable
FALSE
FALSE
el
off
non-ignorable
TRUE
FALSE
gu
off
non-ignorable
TRUE
FALSE
ha
off
non-ignorable
FALSE
FALSE
haw
off
non-ignorable
FALSE
FALSE
he
off
non-ignorable
TRUE
FALSE
he@collation=search
off
non-ignorable
TRUE
FALSE
hi
off
non-ignorable
TRUE
FALSE
hu
off
non-ignorable
FALSE
FALSE
is
off
non-ignorable
FALSE
FALSE
is@collation=search
off
non-ignorable
TRUE
FALSE
ig
off
non-ignorable
TRUE
FALSE
smn
off
non-ignorable
FALSE
FALSE
smn@collation=search
off
non-ignorable
TRUE
FALSE
id
off
non-ignorable
FALSE
FALSE
ga
off
non-ignorable
FALSE
FALSE
it
off
non-ignorable
FALSE
FALSE
ja
off
non-ignorable
FALSE
FALSE
ja@collation=unihan
off
non-ignorable
FALSE
FALSE
kl
off
non-ignorable
FALSE
FALSE
kl@collation=search
off
non-ignorable
TRUE
FALSE
kn
off
non-ignorable
TRUE
FALSE
kn@collation=traditional
off
non-ignorable
TRUE
FALSE
kk
off
non-ignorable
FALSE
FALSE
km
off
non-ignorable
TRUE
FALSE
kok
off
non-ignorable
TRUE
FALSE
ko
off
non-ignorable
FALSE
FALSE
ko@collation=search
off
non-ignorable
TRUE
FALSE
ko@collation=searchjl
off
non-ignorable
TRUE
FALSE
ko@collation=unihan
off
non-ignorable
FALSE
FALSE
ky
off
non-ignorable
FALSE
FALSE
lkt
off
non-ignorable
FALSE
FALSE
lo
off
non-ignorable
FALSE
FALSE
lv
off
non-ignorable
FALSE
FALSE
ln
off
non-ignorable
FALSE
FALSE
ln@collation=phonetic
off
non-ignorable
FALSE
FALSE
lt
off
non-ignorable
FALSE
FALSE
dsb
off
non-ignorable
FALSE
FALSE
lb
off
non-ignorable
FALSE
FALSE
mk
off
non-ignorable
FALSE
FALSE
ms
off
non-ignorable
FALSE
FALSE
ml
off
non-ignorable
FALSE
FALSE
mt
upper
non-ignorable
FALSE
FALSE
mr
off
non-ignorable
TRUE
FALSE
mn
off
non-ignorable
FALSE
FALSE
ne
off
non-ignorable
FALSE
FALSE
se
off
non-ignorable
FALSE
FALSE
se@collation=search
off
non-ignorable
TRUE
FALSE
nb
off
non-ignorable
FALSE
FALSE
nb@collation=search
off
non-ignorable
TRUE
FALSE
nn
off
non-ignorable
FALSE
FALSE
nn@collation=search
off
non-ignorable
TRUE
FALSE
or
off
non-ignorable
TRUE
FALSE
om
off
non-ignorable
FALSE
FALSE
ps
off
non-ignorable
TRUE
FALSE
fa
off
non-ignorable
TRUE
FALSE
fa_AF
off
non-ignorable
TRUE
FALSE
pl
off
non-ignorable
FALSE
FALSE
pt
off
non-ignorable
FALSE
FALSE
pa
off
non-ignorable
TRUE
FALSE
ro
off
non-ignorable
FALSE
FALSE
ru
off
non-ignorable
FALSE
FALSE
sr
off
non-ignorable
FALSE
FALSE
sr_Latn
off
non-ignorable
FALSE
FALSE
sr_Latn@collation=search
off
non-ignorable
TRUE
FALSE
si
off
non-ignorable
TRUE
FALSE
si@collation=dictionary
off
non-ignorable
TRUE
FALSE
sk
off
non-ignorable
FALSE
FALSE
sk@collation=search
off
non-ignorable
TRUE
FALSE
sl
off
non-ignorable
FALSE
FALSE
es
off
non-ignorable
FALSE
FALSE
es@collation=search
off
non-ignorable
TRUE
FALSE
es@collation=traditional
off
non-ignorable
FALSE
FALSE
sw
off
non-ignorable
FALSE
FALSE
sv
off
non-ignorable
FALSE
FALSE
sv@collation=search
off
non-ignorable
TRUE
FALSE
ta
off
non-ignorable
TRUE
FALSE
te
off
non-ignorable
TRUE
FALSE
th
off
시프트
TRUE
FALSE
bo
off
non-ignorable
FALSE
FALSE
to
off
non-ignorable
FALSE
FALSE
tr
off
non-ignorable
FALSE
FALSE
tr@collation=search
off
non-ignorable
TRUE
FALSE
uk
off
non-ignorable
FALSE
FALSE
hsb
off
non-ignorable
FALSE
FALSE
ur
off
non-ignorable
FALSE
FALSE
ug
off
non-ignorable
FALSE
FALSE
vi
off
non-ignorable
TRUE
FALSE
vi@collation=traditional
off
non-ignorable
TRUE
FALSE
wae
off
non-ignorable
FALSE
FALSE
cy
off
non-ignorable
FALSE
FALSE
yi
off
non-ignorable
TRUE
FALSE
yi@collation=search
off
non-ignorable
TRUE
FALSE
yo
off
non-ignorable
TRUE
FALSE
zu
off
non-ignorable
FALSE
FALSE
← 데이터 정렬