config.properties 1.54 KB
#es
yohomarssearch.es.cluster.name=${yohomarssearch.es.cluster.name}
yohomarssearch.es.servers=${yohomarssearch.es.servers}
yohomarssearch.index.number_of_replicas=${yohomarssearch.index.number_of_replicas}
yohomarssearch.index.refresh_interval=${yohomarssearch.index.refresh_interval}
yohomarssearch.index.translog.flush_threshold_ops=${yohomarssearch.index.translog.flush_threshold_ops}

#indexRebuild
search.index.batch.limit=1000
search.index.batch.max.thread.size=5

#search
search.minimum.should.match=30%
search.operator=or
search.use.cache=true
search.multiMatchQuery.type=CROSS_FIELDS
search.suggest.field=suggest^1
search.default.field.bizArea=name^300,english_name^200,name_tc^200,des^100
search.default.field.store=store_name^300,store_english_name^200,store_name_tc^200,store_first^200,address_full^200,des^100
search.default.field.topic=title^300,title_tc^200
search.default.field.line=title^300,title_tc^200
search.default.field.comment=description^300
search.default.field.socialUser=s_nick_name^1000

#web.content
web.context=yohomars-search

#zkAddress
zkAddress=${zkAddress}


# ********************  redis servers  ********************
redis.proxy.address=${redis.proxy.address}
redis.proxy.port=${redis.proxy.port}
redis.proxy.auth=${redis.proxy.auth}

redis.readonly.proxy.address=${redis.readonly.proxy.address}
redis.readonly.proxy.port=${redis.readonly.proxy.port}
redis.readonly.proxy.auth=${redis.readonly.proxy.auth}

redis.notsync.twemproxy.addresses=${redis.notsync.twemproxy.addresses}
redis.notsync.twemproxy.auth=${redis.notsync.twemproxy.auth}