优化文件机构,增加初始化es机构

master
paulGao 2022-02-24 11:16:47 +08:00
parent c761e8963c
commit 75c1bc97da
17 changed files with 302 additions and 703256 deletions

View File

@ -1,7 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<comment>IK Analyzer 扩展配置</comment>
<!--用户可以在这里配置远程扩展字典 -->
<entry key="remote_ext_dict">https://admin-api.pickmall.cn/manager/other/customWords?secretKey=111</entry>
</properties>

View File

@ -1,7 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<comment>IK Analyzer 扩展配置</comment>
<!--用户可以在这里配置远程扩展字典 -->
<entry key="remote_ext_dict">https://admin-api.pickmall.cn/manager/other/customWords?secretKey=111</entry>
</properties>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,31 +0,0 @@
也
使

File diff suppressed because it is too large Load Diff

View File

@ -1,25 +0,0 @@
使

View File

@ -1,316 +0,0 @@
世纪
位数
像素
克拉
公亩
公克
公分
公升
公尺
公担
公斤
公里
公顷
分钟
分米
加仑
千克
千米
厘米
周年
小时
平方
平方公尺
平方公里
平方分米
平方厘米
平方码
平方米
平方英寸
平方英尺
平方英里
平米
年代
年级
月份
毫升
毫米
毫克
海里
点钟
盎司
秒钟
立方公尺
立方分米
立方厘米
立方码
立方米
立方英寸
立方英尺
英亩
英寸
英尺
英里
阶段

View File

@ -1,33 +0,0 @@
a
an
and
are
as
at
be
but
by
for
if
in
into
is
it
no
not
of
on
or
such
that
the
their
then
there
these
they
this
to
was
will
with

View File

@ -1,37 +0,0 @@
斯基
维奇
诺夫

View File

@ -1,131 +0,0 @@
丁
万俟
上官
东方
令狐
仲孙
公冶
公孙
公羊
单于
司徒
司空
司马
夏侯
太叔
宇文
宗政
尉迟
慕容
欧阳
淳于
澹台
濮阳
申屠
皇甫
诸葛
赫连
轩辕
钟离
长孙
闻人
闾丘
鲜于

239
config/lili_goods.json Normal file
View File

@ -0,0 +1,239 @@
{
"properties": {
"_class": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"attrList": {
"type": "nested",
"properties": {
"name": {
"type": "keyword"
},
"type": {
"type": "long"
},
"value": {
"type": "keyword"
}
}
},
"brandId": {
"type": "text",
"fielddata": true,
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"brandName": {
"type": "text",
"fielddata": true,
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"brandUrl": {
"type": "text",
"fielddata": true,
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"buyCount": {
"type": "long"
},
"releaseTime": {
"type": "text",
"fielddata": true,
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"categoryPath": {
"type": "text",
"fielddata": true,
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"categoryNamePath": {
"type": "text",
"fielddata": true,
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"commentNum": {
"type": "long"
},
"skuSource": {
"type": "long"
},
"goodsId": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"goodsName": {
"type": "text",
"fielddata": true,
"analyzer": "ik_max_word",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"grade": {
"type": "float"
},
"highPraiseNum": {
"type": "long"
},
"id": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"intro": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"authFlag": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"marketEnable": {
"type": "text",
"fielddata": true,
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"mobileIntro": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"point": {
"type": "long"
},
"price": {
"type": "float"
},
"salesModel": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"recommend": {
"type": "boolean"
},
"selfOperated": {
"type": "boolean"
},
"sellerId": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"sellerName": {
"type": "text",
"fielddata": true,
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"shopCategoryPath": {
"type": "text",
"fielddata": true,
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"sn": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"promotionMapJson": {
"type": "text"
},
"thumbnail": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
}

View File

@ -11,4 +11,12 @@ output {
hosts => "elasticsearch:9200" hosts => "elasticsearch:9200"
index => "application-%{+YYYY.MM.dd}" index => "application-%{+YYYY.MM.dd}"
} }
if "lili_goods" in [tags] {
elasticsearch {
hosts => ["http://elasticsearch:9200"]
index => "lili_goods"
template => "/usr/share/logstash/templates/lili_goods.json"
template_name => "lili_goods"
}
}
} }

View File

@ -1,62 +1,62 @@
version: '3' # version: '3'
services: # services:
buyer: # buyer:
restart: always # restart: always
image: registry.cn-beijing.aliyuncs.com/lili-images/buyer-api:4.3.0.1 # image: registry.cn-beijing.aliyuncs.com/lili-images/buyer-api:4.3.0.1
container_name: buyer # container_name: buyer
network_mode: host # network_mode: host
environment: # environment:
- TZ=Asia/Shanghai # - TZ=Asia/Shanghai
- JAVA_OPTS=-XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms128m -Xmx256m -Xmn128m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC # - JAVA_OPTS=-XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms128m -Xmx256m -Xmn128m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC
common: # common:
restart: always # restart: always
image: registry.cn-beijing.aliyuncs.com/lili-images/common-api:4.3.0.1 # image: registry.cn-beijing.aliyuncs.com/lili-images/common-api:4.3.0.1
container_name: common # container_name: common
environment: # environment:
- TZ=Asia/Shanghai # - TZ=Asia/Shanghai
- JAVA_OPTS=-XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms128m -Xmx256m -Xmn128m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC # - JAVA_OPTS=-XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms128m -Xmx256m -Xmn128m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC
network_mode: host # network_mode: host
seller: # seller:
restart: always # restart: always
image: registry.cn-beijing.aliyuncs.com/lili-images/seller-api:4.3.0.1 # image: registry.cn-beijing.aliyuncs.com/lili-images/seller-api:4.3.0.1
container_name: seller # container_name: seller
environment: # environment:
- TZ=Asia/Shanghai # - TZ=Asia/Shanghai
- JAVA_OPTS=-XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms128m -Xmx256m -Xmn128m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC # - JAVA_OPTS=-XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms128m -Xmx256m -Xmn128m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC
network_mode: host # network_mode: host
manager: # manager:
restart: always # restart: always
image: registry.cn-beijing.aliyuncs.com/lili-images/manager-api:4.3.0.1 # image: registry.cn-beijing.aliyuncs.com/lili-images/manager-api:4.3.0.1
container_name: manager # container_name: manager
environment: # environment:
- TZ=Asia/Shanghai # - TZ=Asia/Shanghai
- JAVA_OPTS=-XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms128m -Xmx256m -Xmn128m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC # - JAVA_OPTS=-XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -Xms128m -Xmx256m -Xmn128m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC
network_mode: host # network_mode: host
wap-ui: # wap-ui:
restart: always # restart: always
image: registry.cn-beijing.aliyuncs.com/lili-images/wap-ui:4.3.0.1 # image: registry.cn-beijing.aliyuncs.com/lili-images/wap-ui:4.3.0.1
container_name: wap-ui # container_name: wap-ui
network_mode: host # network_mode: host
buyer-ui: # buyer-ui:
restart: always # restart: always
image: registry.cn-beijing.aliyuncs.com/lili-images/buyer-ui:4.3.0.1 # image: registry.cn-beijing.aliyuncs.com/lili-images/buyer-ui:4.3.0.1
container_name: buyer-ui # container_name: buyer-ui
network_mode: host # network_mode: host
seller-ui: # seller-ui:
restart: always # restart: always
image: registry.cn-beijing.aliyuncs.com/lili-images/seller-ui:4.3.0.1 # image: registry.cn-beijing.aliyuncs.com/lili-images/seller-ui:4.3.0.1
container_name: seller-ui # container_name: seller-ui
network_mode: host # network_mode: host
manager-ui: # manager-ui:
restart: always # restart: always
image: registry.cn-beijing.aliyuncs.com/lili-images/manager-ui:4.3.0.1 # image: registry.cn-beijing.aliyuncs.com/lili-images/manager-ui:4.3.0.1
container_name: manager-ui # container_name: manager-ui
network_mode: host # network_mode: host

View File

@ -71,6 +71,7 @@ services:
container_name: logstash container_name: logstash
volumes: volumes:
- ./config/logstash-springboot.conf:/usr/share/logstash/pipeline/logstash.conf #挂载logstash的配置文件 - ./config/logstash-springboot.conf:/usr/share/logstash/pipeline/logstash.conf #挂载logstash的配置文件
- ./config/lili_goods.json:/usr/share/logstash/templates/lili_goods.json
networks: networks:
- stack - stack
depends_on: ['elasticsearch'] depends_on: ['elasticsearch']