Closed ushios closed 10 years ago
nickname_ja:
type: multi_field
analyzer: my_kuromoji
fields:
nickname_ja:
type: string
index: analyzed
analyzer: my_kuromoji
full:
type: string
index: not_analyzed
Using type:multi_filed but faild too.
:+1: same here. I have defined the fields and populate the config:
mappings:
title:
type: string
fields:
raw:
type: string
index: not_analyzed
But when I get the mapping from elasticsearch :
"title" : {
"type" : "string"
},
There is no fields section...
Can someone help us?
I have pushed manually the modified mapping :
curl -XPUT 'http://localhost:9200/xxx/xxx/_mapping' -d '{
"xxx":{
"properties": {
"title": {
"type": "string",
"fields": {
"raw": {
"type": "string",
"index": "not_analyzed"
},
"first_letter": {
"type": "string",
"analyzer": "first_letter"
},
"analysed": {
"type": "string",
"analyzer": "custom_search_analyzer"
}
}
},
}
}'
Then re-populate without resetting index :
php app/console fos:elastica:populate --no-reset
And it works. But it's annoying...
Command
app/console fos:elastica:reset
has error.I was tested on elastica-bundle 3.0.*@dev, elasticsearch 1.0.0RC1 and 1.0.1 but faild both version.