Authored by hugufei

collage索引优化

... ... @@ -76,7 +76,10 @@ public class IndexRebuildJob implements ApplicationEventPublisherAware {
this.rebuildIndexWithlog(ISearchConstants.INDEX_NAME_SKN_FLOW);
this.rebuildIndexWithlog(ISearchConstants.INDEX_NAME_CUSTOMIZE_TAG);
this.rebuildIndexWithlog(ISearchConstants.INDEX_NAME_SHOPSBRANDS);
this.rebuildIndexWithlog(ISearchConstants.INDEX_NAME_COLLAGE);
this.rebuildIndexWithlog(ISearchConstants.INDEX_NAME_COLLAGE_ACTIVITY);
this.rebuildIndexWithlog(ISearchConstants.INDEX_NAME_COLLAGE_PRODUCT);
this.rebuildIndexWithlog(ISearchConstants.INDEX_NAME_CUT_PRICE_CONFIG);
//最后重建pi
... ...
index.analysis.analyzer.default.type: keyword
\ No newline at end of file
{
"collage": {
"_all": {
"enabled": false
},
"_source": {
"enabled": true
},
"properties": {
"id": {
"type": "integer"
},
"activityId": {
"type": "integer"
},
"collagePrice": {
"type": "double"
},
"status": {
"type": "integer"
},
"orderBy": {
"type": "integer"
},
"activityName": {
"type": "keyword"
},
"beginTime": {
"type": "integer"
},
"endTime": {
"type": "integer"
},
"peopleNum": {
"type": "integer"
},
"openLimit": {
"type": "integer"
},
"joinLimit": {
"type": "integer"
},
"isAuto": {
"type": "integer"
},
"activityStatus": {
"type": "integer"
},
"paylimit": {
"type": "integer"
},
"productlimit": {
"type": "integer"
},
"banner": {
"type": "keyword"
}
}
}
}
\ No newline at end of file
... ... @@ -473,16 +473,29 @@
</index>
<index>
<name>collage</name>
<name>collageactivity</name>
<properties>
<property key="number_of_shards" value="1"/>
<property key="number_of_replicas" value="0"/>
<property key="number_of_replicas" value="1"/>
<property key="refresh_interval" value="10s"/>
<property key="translog.flush_threshold_size" value="100mb"/>
</properties>
<builderClass>com.yoho.search.consumer.index.fullbuild.CollageActivityIndexBuilder</builderClass>
<mappingFile>esmapping/collageactivity.json</mappingFile>
<analysisFile>analysis/collageactivity.yml</analysisFile>
</index>
<index>
<name>collageproduct</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_size" value="100mb"/>
</properties>
<builderClass>com.yoho.search.consumer.index.fullbuild.CollageIndexBuilder</builderClass>
<mappingFile>esmapping/collage.json</mappingFile>
<analysisFile>analysis/collage.yml</analysisFile>
<builderClass>com.yoho.search.consumer.index.fullbuild.CollageProductIndexBuilder</builderClass>
<mappingFile>esmapping/collageproduct.json</mappingFile>
<analysisFile>analysis/collageproduct.yml</analysisFile>
</index>
<index>
... ...