【发布时间】:2015-04-29 00:07:45
【问题描述】:
我正在使用 ES 和我的 Laravel 应用程序使用这个 Elasticquent 包。
在索引数据库之前,我的映射如下所示:
'ad_title' => [
'type' => 'string',
'analyzer' => 'standard'
],
'ad_type' => [
'type' => 'integer',
'index' => 'not_analyzed'
],
'ad_type' => [
'type' => 'integer',
'index' => 'not_analyzed'
],
'ad_state' => [
'type' => 'integer',
'index' => 'not_analyzed'
],
但是当我做 API 调用 _mapping?pretty 之后
我的映射如下所示:
"testindex": {
"mappings": {
"ad_ad": {
"properties": {
"ad_city": {
"type": "integer"
},
"ad_id": {
"type": "long"
},
"ad_state": {
"type": "integer"
},
"ad_title": {
"type": "string",
"analyzer": "standard"
},
"ad_type": {
"type": "integer"
},
之后我应该能够在我的映射中看到 'index' => 'not_analyzed' 吗?还是 'index' => 'not_analyzed' 之后没有显示在地图结构中?
【问题讨论】:
标签: php mysql apache laravel elasticsearch