index.xml 15.6 KB
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<IndexConfigs>
    <client>
        <name>yohoSearchElasticsearch</name>
        <properties>
            <property key="es.cluster.name" value="${search.es.cluster.name}"/>
            <property key="es.servers" value="${search.es.servers}"/>
        </properties>

        <index>
            <name>brand</name>
            <properties>
                <property key="number_of_shards" value="1"/>
                <property key="number_of_replicas" value="${search.index.number_of_replicas}"/>
                <property key="refresh_interval" value="${search.index.refresh_interval}"/>
                <property key="translog.flush_threshold_size" value="${search.index.translog.flush_threshold_size}"/>
            </properties>
            <builderClass>com.yoho.search.consumer.index.fullbuild.BrandIndexBuilder,com.yoho.search.consumer.index.fullbuild.TblBrandIndexBuilder</builderClass>
            <mappingFile>esmapping/brand.json</mappingFile>
            <analysisFile>analysis/brand.yml</analysisFile>
        </index>

        <index>
            <name>size</name>
            <properties>
                <property key="number_of_shards" value="1"/>
                <property key="number_of_replicas" value="${search.index.number_of_replicas}"/>
                <property key="refresh_interval" value="${search.index.refresh_interval}"/>
                <property key="translog.flush_threshold_size" value="${search.index.translog.flush_threshold_size}"/>
            </properties>
            <builderClass>com.yoho.search.consumer.index.fullbuild.SizeIndexBuilder</builderClass>
            <mappingFile>esmapping/size.json</mappingFile>
            <analysisFile>analysis/size.yml</analysisFile>
        </index>

        <index>
            <name>style</name>
            <properties>
                <property key="number_of_shards" value="1"/>
                <property key="number_of_replicas" value="${search.index.number_of_replicas}"/>
                <property key="refresh_interval" value="${search.index.refresh_interval}"/>
                <property key="translog.flush_threshold_size" value="${search.index.translog.flush_threshold_size}"/>
            </properties>
            <builderClass>com.yoho.search.consumer.index.fullbuild.StyleIndexBuilder</builderClass>
            <mappingFile>esmapping/style.json</mappingFile>
            <analysisFile>analysis/style.yml</analysisFile>
        </index>

        <index>
            <name>productcolor</name>
            <properties>
                <property key="number_of_shards" value="1"/>
                <property key="number_of_replicas" value="${search.index.number_of_replicas}"/>
                <property key="refresh_interval" value="${search.index.refresh_interval}"/>
                <property key="translog.flush_threshold_size" value="${search.index.translog.flush_threshold_size}"/>
            </properties>
            <builderClass>com.yoho.search.consumer.index.fullbuild.ProductColorIndexBuilder</builderClass>
            <mappingFile>esmapping/productcolor.json</mappingFile>
            <analysisFile>analysis/productcolor.yml</analysisFile>
        </index>

        <index>
            <name>productsort</name>
            <properties>
                <property key="number_of_shards" value="1"/>
                <property key="number_of_replicas" value="${search.index.number_of_replicas}"/>
                <property key="refresh_interval" value="${search.index.refresh_interval}"/>
                <property key="translog.flush_threshold_size" value="${search.index.translog.flush_threshold_size}"/>
            </properties>
            <builderClass>com.yoho.search.consumer.index.fullbuild.ProductSortIndexBuilder</builderClass>
            <mappingFile>esmapping/productsort.json</mappingFile>
            <analysisFile>analysis/productsort.yml</analysisFile>
        </index>

        <index>
            <name>productindex</name>
            <properties>
                <property key="number_of_shards" value="1"/>
                <property key="number_of_replicas" value="${search.index.number_of_replicas}"/>
                <property key="refresh_interval" value="${search.index.refresh_interval}"/>
                <property key="translog.flush_threshold_size" value="${search.index.translog.flush_threshold_size}"/>
            </properties>
            <builderClass>com.yoho.search.consumer.index.fullbuild.ProductIndexIndexBuilder,com.yoho.search.consumer.index.fullbuild.TblProductNewIndexBuilder</builderClass>
            <mappingFile>esmapping/productindex.json</mappingFile>
            <analysisFile>analysis/productindex.yml</analysisFile>
        </index>

        <index>
            <name>suggest</name>
            <properties>
                <property key="number_of_shards" value="1"/>
                <property key="number_of_replicas" value="${search.index.number_of_replicas}"/>
                <property key="refresh_interval" value="${search.index.refresh_interval}"/>
                <property key="translog.flush_threshold_size" value="${search.index.translog.flush_threshold_size}"/>
            </properties>
            <builderClass>com.yoho.search.consumer.index.fullbuild.SuggestIndexBuilder,com.yoho.search.consumer.index.fullbuild.SuggestCustomIndexBuilder</builderClass>
            <mappingFile>esmapping/suggest.json</mappingFile>
            <analysisFile>analysis/suggest.yml</analysisFile>
        </index>

        <index>
            <name>conversion</name>
            <properties>
                <property key="number_of_shards" value="1"/>
                <property key="number_of_replicas" value="${search.index.number_of_replicas}"/>
                <property key="refresh_interval" value="${search.index.refresh_interval}"/>
                <property key="translog.flush_threshold_size" value="${search.index.translog.flush_threshold_size}"/>
            </properties>
            <builderClass>
                com.yoho.search.consumer.index.fullbuild.SuggestConversionIndexBuilder,com.yoho.search.consumer.index.fullbuild.SuggestConversionFromBrandIndexBuilder,com.yoho.search.consumer.index.fullbuild.SuggestConversionCustomIndexBuilder
            </builderClass>
            <mappingFile>esmapping/conversion.json</mappingFile>
            <analysisFile>analysis/conversion.yml</analysisFile>
        </index>

        <index>
            <name>tblproduct</name>
            <properties>
                <property key="number_of_shards" value="1"/>
                <property key="number_of_replicas" value="${search.index.number_of_replicas}"/>
                <property key="refresh_interval" value="${search.index.refresh_interval}"/>
                <property key="translog.flush_threshold_size" value="${search.index.translog.flush_threshold_size}"/>
            </properties>
            <builderClass>com.yoho.search.consumer.index.fullbuild.TblProductIndexBuilder</builderClass>
            <mappingFile>esmapping/tblproduct.json</mappingFile>
            <analysisFile>analysis/tblproduct.yml</analysisFile>
        </index>

        <index>
            <name>standard</name>
            <properties>
                <property key="number_of_shards" value="1"/>
                <property key="number_of_replicas" value="${search.index.number_of_replicas}"/>
                <property key="refresh_interval" value="${search.index.refresh_interval}"/>
                <property key="translog.flush_threshold_size" value="${search.index.translog.flush_threshold_size}"/>
            </properties>
            <builderClass>com.yoho.search.consumer.index.fullbuild.StandardIndexBuilder</builderClass>
            <mappingFile>esmapping/standard.json</mappingFile>
            <analysisFile>analysis/standard.yml</analysisFile>
        </index>

        <index>
            <name>robotquestion</name>
            <properties>
                <property key="number_of_shards" value="1"/>
                <property key="number_of_replicas" value="${search.index.number_of_replicas}"/>
                <property key="refresh_interval" value="${search.index.refresh_interval}"/>
                <property key="translog.flush_threshold_size" value="${search.index.translog.flush_threshold_size}"/>
            </properties>
            <builderClass>com.yoho.search.consumer.index.fullbuild.RobotQuestionIndexBuilder</builderClass>
            <mappingFile>esmapping/robotquestion.json</mappingFile>
            <analysisFile>analysis/robotquestion.yml</analysisFile>
        </index>

        <index>
            <name>robotquestionold</name>
            <properties>
                <property key="number_of_shards" value="1"/>
                <property key="number_of_replicas" value="${search.index.number_of_replicas}"/>
                <property key="refresh_interval" value="${search.index.refresh_interval}"/>
                <property key="translog.flush_threshold_size" value="${search.index.translog.flush_threshold_size}"/>
            </properties>
            <builderClass>com.yoho.search.consumer.index.fullbuild.RobotQuestionOldIndexBuilder</builderClass>
            <mappingFile>esmapping/robotquestionold.json</mappingFile>
            <analysisFile>analysis/robotquestionold.yml</analysisFile>
        </index>

        <index>
            <name>shops</name>
            <properties>
                <property key="number_of_shards" value="1"/>
                <property key="number_of_replicas" value="${search.index.number_of_replicas}"/>
                <property key="refresh_interval" value="${search.index.refresh_interval}"/>
                <property key="translog.flush_threshold_size" value="${search.index.translog.flush_threshold_size}"/>
            </properties>
            <builderClass>com.yoho.search.consumer.index.fullbuild.ShopsIndexBuilder</builderClass>
            <mappingFile>esmapping/shops.json</mappingFile>
            <analysisFile>analysis/shops.yml</analysisFile>
        </index>

        <index>
            <name>productpriceplan</name>
            <properties>
                <property key="number_of_shards" value="1"/>
                <property key="number_of_replicas" value="${search.index.number_of_replicas}"/>
                <property key="refresh_interval" value="${search.index.refresh_interval}"/>
                <property key="translog.flush_threshold_size" value="${search.index.translog.flush_threshold_size}"/>
            </properties>
            <builderClass>com.yoho.search.consumer.index.fullbuild.ProductPricePlanIndexBuilder</builderClass>
            <mappingFile>esmapping/productpriceplan.json</mappingFile>
            <analysisFile>analysis/productpriceplan.yml</analysisFile>
        </index>

        <index>
            <name>helper</name>
            <properties>
                <property key="number_of_shards" value="1"/>
                <property key="number_of_replicas" value="${search.index.number_of_replicas}"/>
                <property key="refresh_interval" value="${search.index.refresh_interval}"/>
                <property key="translog.flush_threshold_size" value="${search.index.translog.flush_threshold_size}"/>
            </properties>
            <builderClass>com.yoho.search.consumer.index.fullbuild.HelperIndexBuilder</builderClass>
            <mappingFile>esmapping/helper.json</mappingFile>
            <analysisFile>analysis/helper.yml</analysisFile>
        </index>

        <index>
            <name>zqname</name>
            <properties>
                <property key="number_of_shards" value="1"/>
                <property key="number_of_replicas" value="${search.index.number_of_replicas}"/>
                <property key="refresh_interval" value="${search.index.refresh_interval}"/>
                <property key="translog.flush_threshold_size" value="${search.index.translog.flush_threshold_size}"/>
            </properties>
            <builderClass>com.yoho.search.consumer.index.fullbuild.PromotionIndexBuilder</builderClass>
            <mappingFile>esmapping/zqname.json</mappingFile>
            <analysisFile>analysis/zqname.yml</analysisFile>
        </index>

        <index>
            <name>sknimagevectors</name>
            <properties>
                <property key="number_of_shards" value="1"/>
                <property key="number_of_replicas" value="${search.index.number_of_replicas}"/>
                <property key="refresh_interval" value="${search.index.refresh_interval}"/>
                <property key="translog.flush_threshold_size" value="${search.index.translog.flush_threshold_size}"/>
            </properties>
            <builderClass>com.yoho.search.consumer.index.fullbuild.ImageVectorsIndexBuilder</builderClass>
            <mappingFile>esmapping/sknimagevectors.json</mappingFile>
            <analysisFile>analysis/sknimagevectors.yml</analysisFile>
        </index>

        <index>
            <name>promotionindex</name>
            <properties>
                <property key="number_of_shards" value="1"/>
                <property key="number_of_replicas" value="${search.index.number_of_replicas}"/>
                <property key="refresh_interval" value="${search.index.refresh_interval}"/>
                <property key="translog.flush_threshold_size" value="${search.index.translog.flush_threshold_size}"/>
            </properties>
            <builderClass>com.yoho.search.consumer.index.fullbuild.PromotionIndexIndexBuilder</builderClass>
            <mappingFile>esmapping/promotionindex.json</mappingFile>
            <analysisFile>analysis/promotionindex.yml</analysisFile>
        </index>

        <index>
            <name>activitytag</name>
            <properties>
                <property key="number_of_shards" value="1"/>
                <property key="number_of_replicas" value="${search.index.number_of_replicas}"/>
                <property key="refresh_interval" value="${search.index.refresh_interval}"/>
                <property key="translog.flush_threshold_size" value="${search.index.translog.flush_threshold_size}"/>
            </properties>
            <builderClass>com.yoho.search.consumer.index.fullbuild.ActivityTagIndexBuilder</builderClass>
            <mappingFile>esmapping/activitytag.json</mappingFile>
            <analysisFile>analysis/activitytag.yml</analysisFile>
        </index>

        <index>
            <name>bigdatasimilarskn</name>
            <properties>
                <property key="number_of_shards" value="1"/>
                <property key="number_of_replicas" value="${search.index.number_of_replicas}"/>
                <property key="refresh_interval" value="${search.index.refresh_interval}"/>
                <property key="translog.flush_threshold_size" value="${search.index.translog.flush_threshold_size}"/>
            </properties>
            <builderClass>com.yoho.search.consumer.index.fullbuild.BigdataSimilarSknIndexBuilder</builderClass>
            <mappingFile>esmapping/bigdatasimilarskn.json</mappingFile>
            <analysisFile>analysis/bigdatasimilarskn.yml</analysisFile>
        </index>

        <index>
            <name>promotiontype</name>
            <properties>
                <property key="number_of_shards" value="1"/>
                <property key="number_of_replicas" value="${search.index.number_of_replicas}"/>
                <property key="refresh_interval" value="${search.index.refresh_interval}"/>
                <property key="translog.flush_threshold_size" value="${search.index.translog.flush_threshold_size}"/>
            </properties>
            <builderClass>com.yoho.search.consumer.index.fullbuild.PromotionTypeIndexBuilder</builderClass>
            <mappingFile>esmapping/promotiontype.json</mappingFile>
            <analysisFile>analysis/promotiontype.yml</analysisFile>
        </index>

    </client>
</IndexConfigs>