write down,forget
adidas eqt support ultra primeknit vintage white coming soon adidas eqt support ultra boost primeknit adidas eqt support ultra pk vintage white available now adidas eqt support ultra primeknit vintage white sz adidas eqt support ultra boost primeknit adidas eqt adv support primeknit adidas eqt support ultra boost turbo red white adidas eqt support ultra boost turbo red white adidas eqt support ultra boost turbo red adidas eqt support ultra whiteturbo adidas eqt support ultra boost off white more images adidas eqt support ultra boost white tactile green adidas eqt support ultra boost beige adidas eqt support ultra boost beige adidas eqt support refined camo drop adidas eqt support refined camo drop adidas eqt support refined running whitecamo adidas eqt support 93 primeknit og colorway ba7506 adidas eqt running support 93 adidas eqt support 93

mapping相关配置

<Category: 搜索> 查看评论

接口调试记录,AGN。

index.mapper.default__location : “path to mappings file” #设置默认mapping路径

注:如果要额外指定位置,请使用全路径,如 windows下面(linux下类似)

index.mapper.dynamic : true #设置是否启用dynamic mapping

 

 

default-mapping设置

在config目录放置文件:default-mapping.json

里面内容:

post一个文档看看mapping是否生效。

注意,json里面不能包含有回车换行等憋屈字符,否则会报如下的错误。

正常的情况下,通过mapping接口查看刚刚的索引mapping,应该可以看到如下结果.

经测试,修改mapping配置文件,不需要重启服务(改了elasticsearch.yml文件则必须重启服务生效),如,修改default-mapping.json文件

post一个文件到新的索引目录

查看dynamic mapping信息

urlencode之后:
李大钊: %e6%9d%8e%e5%a4%a7%e9%92%8a
桃李满天下:%e6%a1%83%e6%9d%8e%e6%bb%a1%e5%a4%a9%e4%b8%8b
创建索引时,指定analysis

本文来自: mapping相关配置