misskey/elasticsearch/mappings.json

53 lines
785 B
JSON
Raw Normal View History

2016-12-28 23:49:51 +01:00
{
"settings": {
"analysis": {
"analyzer": {
"bigram": {
"tokenizer": "bigram_tokenizer"
}
},
"tokenizer": {
"bigram_tokenizer": {
"type": "nGram",
"min_gram": 2,
"max_gram": 2,
"token_chars": [
"letter",
"digit"
]
}
}
}
},
"mappings": {
"user": {
"properties": {
"username": {
"type": "string",
"index": "analyzed",
"analyzer": "bigram"
},
"name": {
"type": "string",
"index": "analyzed",
"analyzer": "bigram"
},
"bio": {
"type": "string",
"index": "analyzed",
2018-07-04 06:21:30 +02:00
"analyzer": "bigram"
2016-12-28 23:49:51 +01:00
}
}
},
2018-07-04 06:21:30 +02:00
"note": {
2016-12-28 23:49:51 +01:00
"properties": {
"text": {
"type": "string",
"index": "analyzed",
2018-07-04 06:21:30 +02:00
"analyzer": "bigram"
2016-12-28 23:49:51 +01:00
}
}
}
}
}