fecshop xunsearch 配置文件search.ini文件的配置解读

Xunsearch · Fecmall · 于 5年前 发布 · 2296 次阅读

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
共收到 0 条回复
没有找到数据。
添加回复 (需要登录)
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册
Your Site Analytics