例如想要的mapping如下:
"lastName": {
"type": "text",
"fields": { "
keyword": {
"type": "keyword",
"ignore_above": 256 }
}}
现有的models就是:
[Text( Name = "lastName")]
public string LastName { get; set; }
还有一个keyword怎么办???
"lastName": {
"type": "text",
"fields": { "
keyword": {
"type": "keyword",
"ignore_above": 256 }
}}
现有的models就是:
[Text( Name = "lastName")]
public string LastName { get; set; }
还有一个keyword怎么办???
1 个回复
AroBono
赞同来自:
[keyword]
public string LastName_keyword { get{ return LastName;} set; }