1.什么是Mapping映射?
映射:创建索引的时候,可以预先定义字段的类型及相关属性
作用:这样会让索引建立的更加的细致和完善
分类:静态映射和动态映射
Type ES type Description
String,Varchar,Text string 文本类型
Integer integer 整型
Long long 长整型
Float float 浮点型
Double doub
public class Person {
static class Dog {
}
class Bird{
}
public static void main(String[] args) {
Person.Dog dog = new Person.Dog();
Person p = new Person();