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

Issue with Aggregations on language field #28

Closed
dobariya opened this issue Mar 27, 2015 · 1 comment
Closed

Issue with Aggregations on language field #28

dobariya opened this issue Mar 27, 2015 · 1 comment

Comments

@dobariya
Copy link

Content.lang field does not give proper result when used in term aggregations having language zh-cn and zh-tw
I am using aggregations on content.lang filed as below

{
"aggs" : {
"tags" : {
"terms" : {
"field" : "content.lang"
}
}
}
}

the result is

"aggregations": {
"tags": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 5,
"buckets": [
{
"key": "zh",
"doc_count": 6
},
{
"key": "cn",
"doc_count": 4
},
{
"key": "en",
"doc_count": 4
},
{
"key": "ar",
"doc_count": 2
},
{
"key": "de",
"doc_count": 2
},
{
"key": "es",
"doc_count": 2
},
{
"key": "fr",
"doc_count": 2
},
{
"key": "ja",
"doc_count": 2
},
{
"key": "ko",
"doc_count": 2
},
{
"key": "no",
"doc_count": 2
}
]
}
}

I have document with zh-cn and zh-tw language.When using aggregations it splits the word from "-" and makes two different words..See above output zh=6 and cn=4.But actually this is a single language "zh-cn"

Is this a bug? or do i have to set up anything else to make a whole word

@jprante jprante closed this as completed in 3438725 Apr 3, 2015
@jprante
Copy link
Owner

jprante commented Apr 3, 2015

New release 1.4.4.2 contains a bug fix. Thanks for reporting.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants