index.xml
5.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<IndexConfigs>
<client name="yohoSearchElasticsearch">
<factory>com.yohomars.search.index.factory.impl.YohoIndexClientFactoryImpl</factory>
<properties>
<property key="yohomarssearch.es.cluster.name" value="${yohomarssearch.es.cluster.name}"/>
<property key="yohomarssearch.es.servers" value="${yohomarssearch.es.servers}"/>
</properties>
<index>
<name>bizarea</name>
<properties>
<property key="number_of_shards" value="1"/>
<property key="number_of_replicas" value="${yohomarssearch.index.number_of_replicas}"/>
<property key="refresh_interval" value="${yohomarssearch.index.refresh_interval}"/>
<property key="translog.flush_threshold_ops" value="${yohomarssearch.index.translog.flush_threshold_ops}"/>
</properties>
<builderClass>com.yohomars.search.index.builder.impls.BizareaIndexBuilder</builderClass>
<appenderClass>com.yohomars.search.index.appender.impls.BizareaIndexAppender</appenderClass>
<mappingFile>esmapping/bizarea.json</mappingFile>
</index>
<index>
<name>comment</name>
<properties>
<property key="number_of_shards" value="1"/>
<property key="number_of_replicas" value="${yohomarssearch.index.number_of_replicas}"/>
<property key="refresh_interval" value="${yohomarssearch.index.refresh_interval}"/>
<property key="translog.flush_threshold_ops" value="${yohomarssearch.index.translog.flush_threshold_ops}"/>
</properties>
<builderClass>com.yohomars.search.index.builder.impls.CommentIndexBuilder</builderClass>
<appenderClass>com.yohomars.search.index.appender.impls.CommentIndexAppender</appenderClass>
<mappingFile>esmapping/comment.json</mappingFile>
</index>
<index>
<name>line</name>
<properties>
<property key="number_of_shards" value="1"/>
<property key="number_of_replicas" value="${yohomarssearch.index.number_of_replicas}"/>
<property key="refresh_interval" value="${yohomarssearch.index.refresh_interval}"/>
<property key="translog.flush_threshold_ops" value="${yohomarssearch.index.translog.flush_threshold_ops}"/>
</properties>
<builderClass>com.yohomars.search.index.builder.impls.LineIndexBuilder</builderClass>
<appenderClass>com.yohomars.search.index.appender.impls.LineIndexAppender</appenderClass>
<mappingFile>esmapping/line.json</mappingFile>
</index>
<index>
<name>store</name>
<properties>
<property key="number_of_shards" value="1"/>
<property key="number_of_replicas" value="${yohomarssearch.index.number_of_replicas}"/>
<property key="refresh_interval" value="${yohomarssearch.index.refresh_interval}"/>
<property key="translog.flush_threshold_ops" value="${yohomarssearch.index.translog.flush_threshold_ops}"/>
</properties>
<builderClass>com.yohomars.search.index.builder.impls.StoreIndexBuilder</builderClass>
<appenderClass>com.yohomars.search.index.appender.impls.StoreIndexAppender</appenderClass>
<mappingFile>esmapping/store.json</mappingFile>
</index>
<index>
<name>topic</name>
<properties>
<property key="number_of_shards" value="1"/>
<property key="number_of_replicas" value="${yohomarssearch.index.number_of_replicas}"/>
<property key="refresh_interval" value="${yohomarssearch.index.refresh_interval}"/>
<property key="translog.flush_threshold_ops" value="${yohomarssearch.index.translog.flush_threshold_ops}"/>
</properties>
<builderClass>com.yohomars.search.index.builder.impls.TopicIndexBuilder</builderClass>
<appenderClass>com.yohomars.search.index.appender.impls.TopicIndexAppender</appenderClass>
<mappingFile>esmapping/topic.json</mappingFile>
</index>
<index>
<name>social_user</name>
<properties>
<property key="number_of_shards" value="1"/>
<property key="number_of_replicas" value="${yohomarssearch.index.number_of_replicas}"/>
<property key="refresh_interval" value="${yohomarssearch.index.refresh_interval}"/>
<property key="translog.flush_threshold_ops" value="${yohomarssearch.index.translog.flush_threshold_ops}"/>
</properties>
<builderClass>com.yohomars.search.index.builder.impls.SocialUserIndexBuilder</builderClass>
<appenderClass>com.yohomars.search.index.appender.impls.SocialUserIndexAppender</appenderClass>
<mappingFile>esmapping/social_user.json</mappingFile>
</index>
<index>
<name>content</name>
<properties>
<property key="number_of_shards" value="1"/>
<property key="number_of_replicas" value="${yohomarssearch.index.number_of_replicas}"/>
<property key="refresh_interval" value="${yohomarssearch.index.refresh_interval}"/>
<property key="translog.flush_threshold_ops" value="${yohomarssearch.index.translog.flush_threshold_ops}"/>
</properties>
<builderClass>com.yohomars.search.index.builder.impls.ContentIndexBuilder</builderClass>
<appenderClass>com.yohomars.search.index.appender.impls.ContentIndexAppender</appenderClass>
<mappingFile>esmapping/content.json</mappingFile>
</index>
</client>
</IndexConfigs>