【发布时间】:2013-03-26 12:59:09
【问题描述】:
我正在使用弹性搜索词构面,我的字段包含一些负值,但构面忽略了负号
下面是分面查询
http://myserver.com:9200/index/type/_search
获取/发布正文
{
"facets" : {
"school.id" : {
"terms" : {
"field" : "school.id",
"size" : 10
}
}
}
}
回应
{
"took": 281,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"failed": 0
},
"facets": {
"school.id": {
"_type": "terms",
"missing": 302,
"total": 4390,
"other": 0,
"terms": [
{
"term": "1113515007867355135",
"count": 4390
}
]
}
}
}
id 的实际值为-1113515007867355135,是我做错了什么还是需要传递任何东西来包含负号(词干问题)?
【问题讨论】:
-
发帖在elasticsearch组groups.google.com/forum/#!topic/elasticsearch/FeObbeT1eok
标签: elasticsearch faceted-search facet