fecshop xunsearch 配置文件search.ini文件为: @fecshop/config/xunsearch/search.ini
内容如下:
project.name = search
project.default_charset = UTF-8
;服务端用默认值
server.index = xunsearch:8383
server.search = xunsearch:8384
[_id]
type = id
[name]
type = title
[description]
type = body
[sku]
type = string
index = mixed
[spu]
type = string
index = mixed
[score]
type = numeric
index = none
[url_key]
type = string
index = none
[price]
type = numeric
index = none
[cost_price]
type = numeric
index = none
[special_price]
type = numeric
index = none
[special_from]
type = numeric
index = none
[special_to]
type = numeric
index = none
[final_price]
type = numeric
index = self
[image]
type = string
index = none
[short_description]
type = string
index = none
[created_at]
type = numeric
index = none
[sync_updated_at]
type = numeric
index = none
[color]
type = string
index = self
[size]
type = string
index = self
project.name = search
: xunsearch的库名
project.default_charset = UTF-8
: 编码
server.index = xunsearch:8383
: 这个是xunsearch Index的host和端口,xunsearch
代表是host,这里可以填写ip,也可以填写host名称(在/etc/hosts中添加ip映射即可),8383
是端口port
server.search = xunsearch:8384
: 这个是xunsearch Search的host和端口,xunsearch
代表是host,这里可以填写ip,也可以填写host名称(在/etc/hosts中添加ip映射即可),8384
是端口port
对于上面的配置ip,配置的是xunsearch, 需要添加host映射
vi /etc/hosts,添加下面的内容
127.0.0.1 xunsearch