Open Vanuan opened 8 years ago
curl -XPUT 'http://46.101.102.213:9200/companies-index/_mappings/companies-type' -d '{
"companies-type": {
"properties": {
"status": {
"type": "string",
"fields": {
"raw": {
"type": "string",
"index": "not_analyzed"
}
}
},
"occupation": {
"type": "string",
"fields": {
"raw": {
"type": "string",
"index": "not_analyzed"
}
}
}
}
}
}'
regex search is too slow. Maybe full text search is enough?