index.xml 3.1 KB
<?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="yohosearch_test"/>
            <property key="yohomarssearch.es.servers" value="192.168.102.209:9300 192.168.102.216:9300"/>
        </properties>

        <index>
            <name>bizarea</name>
            <properties>
                <property key="number_of_shards" value="1"/>
                <property key="number_of_replicas" value="1"/>
                <property key="refresh_interval" value="10s"/>
                <property key="translog.flush_threshold_ops" value="5000"/>
            </properties>
            <builderClass>com.yohomars.search.index.builder.impls.BizareaIndexBuilder</builderClass>
            <mappingFile>esmapping/bizarea.json</mappingFile>
        </index>

        <index>
            <name>comment</name>
            <properties>
                <property key="number_of_shards" value="1"/>
                <property key="number_of_replicas" value="1"/>
                <property key="refresh_interval" value="10s"/>
                <property key="translog.flush_threshold_ops" value="5000"/>
            </properties>
            <builderClass>com.yohomars.search.index.builder.impls.CommentIndexBuilder</builderClass>
            <mappingFile>esmapping/comment.json</mappingFile>
        </index>

        <index>
            <name>line</name>
            <properties>
                <property key="number_of_shards" value="1"/>
                <property key="number_of_replicas" value="1"/>
                <property key="refresh_interval" value="10s"/>
                <property key="translog.flush_threshold_ops" value="5000"/>
            </properties>
            <builderClass>com.yohomars.search.index.builder.impls.LineIndexBuilder</builderClass>
            <mappingFile>esmapping/line.json</mappingFile>
        </index>

        <index>
            <name>store</name>
            <properties>
                <property key="number_of_shards" value="1"/>
                <property key="number_of_replicas" value="1"/>
                <property key="refresh_interval" value="10s"/>
                <property key="translog.flush_threshold_ops" value="5000"/>
            </properties>
            <builderClass>com.yohomars.search.index.builder.impls.StoreIndexBuilder</builderClass>
            <mappingFile>esmapping/store.json</mappingFile>
        </index>

        <index>
            <name>topic</name>
            <properties>
                <property key="number_of_shards" value="1"/>
                <property key="number_of_replicas" value="1"/>
                <property key="refresh_interval" value="10s"/>
                <property key="translog.flush_threshold_ops" value="5000"/>
            </properties>
            <builderClass>com.yohomars.search.index.builder.impls.TopicIndexBuilder</builderClass>
            <mappingFile>esmapping/topic.json</mappingFile>
        </index>
    </client>
</IndexConfigs>