I've separated the two index into different nodes, ie. index_all in node1-4, index_recent in node5-7.
The search speed is still slow. Averagely it cost more than 3 seconds to count a TermQuery. While in 1.3, it cost about 0.7 seconds.
Maybe i should start a machine purely for the speed test...To find out what's the problem.
Probably the next month
Below is my index setting, could you help me to check if there is any problem? We use a customized analyzer for analyzed field, and my count request is based on textcontent field. ie. query{term:{textcontent: word}}
{
"state": "open",
"settings": {
"index": {
"refresh_interval": "1s",
"number_of_shards": "5",
"provided_name": "tj_news_all",
"analysis": {
"filter": {
"float_delimited": {
"encoding": "float",
"type": "delimited_payload_filter"
}
},
"analyzer": {
"default_search": {
"type": "nlp_query"
},
"default": {
"type": "nlp_index"
},
"keyword": {
"filter": "float_delimited",
"type": "custom",
"tokenizer": "whitespace"
},
"full_text": {
"filter": "type_as_payload",
"type": "custom",
"tokenizer": "nlp_index_token"
}
}
}
},
"mappings": {
"news": {
"dynamic": "strict",
"_all": {
"search_analyzer": "default_search",
"analyzer": "default",
"enabled": false
},
"properties": {
"textcontent": {
"search_analyzer": "nlp_query",
"analyzer": "full_text",
"term_vector": "with_positions_offsets_payloads",
"type": "text",
"index_options": "offsets"
},
"keywords": {
"norms": false,
"analyzer": "nlp_keyword",
"store": true,
"type": "text",
"index_options": "freqs"
},
"imagenum": {
"store": true,
"type": "integer",
"doc_values": false
},
"title": {
"search_analyzer": "nlp_query",
"analyzer": "full_text",
"term_vector": "with_positions_offsets_payloads",
"store": true,
"type": "text",
"index_options": "offsets"
},
"istitlematched": {
"store": true,
"type": "boolean"
},
"innerfrom": {
"index": false,
"store": true,
"type": "keyword",
"doc_values": false
},
"download": {
"format": "yyyy-MM-dd HH:mm:ss||epoch_millis",
"store": true,
"type": "date"
},
"_md5": {
"store": true,
"type": "keyword",
"doc_values": false
},
"cat": {
"store": true,
"type": "keyword",
"doc_values": false
},
"from": {
"store": true,
"type": "keyword",
"doc_values": false
},
"_pid": {
"store": true,
"type": "keyword",
"doc_values": false
},
"summary": {
"search_analyzer": "nlp_query",
"analyzer": "full_text",
"term_vector": "with_positions_offsets_payloads",
"store": true,
"type": "text",
"index_options": "offsets"
},
"image": {
"index": false,
"store": true,
"type": "keyword",
"doc_values": false
},
"textrank": {
"search_analyzer": "nlp_query",
"analyzer": "keyword",
"type": "text",
"index_options": "freqs"
},
"innerfromurl": {
"store": true,
"type": "keyword",
"doc_values": false
},
"duplicate": {
"store": true,
"type": "boolean",
"doc_values": false
},
"article": {
"index": false,
"type": "keyword",
"doc_values": false
},
"url": {
"store": true,
"type": "keyword",
"doc_values": false
},
"tags": {
"store": true,
"type": "keyword",
"doc_values": false
},
"site": {
"eager_global_ordinals": true,
"store": true,
"type": "keyword"
},
"multiscore": {
"norms": false,
"analyzer": "nlp_keyword",
"store": true,
"type": "text",
"index_options": "freqs"
},
"isdirty": {
"store": true,
"type": "boolean",
"doc_values": false
},
"time": {
"format": "yyyy-MM-dd HH:mm:ss||epoch_millis",
"store": true,
"type": "date"
},
"_tid": {
"store": true,
"type": "long"
},
"mediatype": {
"store": true,
"type": "integer"
},
"status": {
"store": true,
"type": "byte"
}
}
}
},
"aliases": [
"tianji"
]
}