Thanks for the reply.
We will consider the upgrade separately.
The document sample, query and result samples are shown below.
However, the key name is replaced with "v_", the string with "xxxxx", and the number with "yyyyy".
Document Sample
{
"_index": "xxxxx",
"_type": "_doc",
"_id": "xxxxx",
"_version": 6,
"_seq_no": 1246083,
"_primary_term": 2,
"found": true,
"_source": {
"v_1": "xxxxx",
"v_8": yyyyy,
"v_3": "xxxxx",
"v_10": yyyyy,
"v_11": yyyyy,
"f_12": true,
"v_7": "xxxxx",
"v_2": "xxxxx",
"v_5": "xxxxx",
"v_4": "xxxxx",
"v_9": yyyyy,
"v_6": "xxxxx",
"v_13": {
"v_14": null,
"v_15": null
},
}
}
Request Sample
{
"track_total_hits": True,
"query": {
"bool": {
"must": [
{
"multi_match": {
"query": "xxxxxx",
"type": "phrase",
"fields": [
"v_1^1.5",
"v_2",
"v_3",
"v_4",
"v_5",
"v_6^0.9",
"v_7"
],
"analyzer": "ja_analyzer",
"slop": 2
}
}
],
"filter": {
"bool": {
"must": [
{
"bool": {
"should": [
{
"range": {
"v_8": {
"gt": 0
}
}
},
{
"match": {
"v_8": -1
}
}
]
}
},
{
"bool": {
"should": [
{
"range": {
"v_9": {
"gt": 0
}
}
},
{
"match": {
"v_9": -1
}
}
]
}
},
{
"bool": {
"should": [
{
"range": {
"v_10": {
"gte": 0
}
}
},
{
"match": {
"v_10": -1
}
}
]
}
},
{
"bool": {
"should": [
{
"range": {
"v_11": {
"gte": 0
}
}
},
{
"match": {
"v_11": -1
}
}
]
}
},
{
"term": {
"v_12": True
}
},
{
"bool": {
"should": []
}
},
{
"bool": {
"should": []
}
},
{
"bool": {
"should": []
}
}
]
}
}
}
},
"from": 0,
"size": per,
"highlight": {
"pre_tags": [
"<mark>"
],
"post_tags": [
"</mark>"
],
"fields": {
"v_6": {
"number_of_fragments": 1,
"fragment_size": 150
},
"v_7": {
"number_of_fragments": 1,
"fragment_size": 150
},
"v_5": {
"number_of_fragments": 1,
"fragment_size": 150
},
"v_4": {
"number_of_fragments": 1,
"fragment_size": 150
},
"v_2": {
"number_of_fragments": 1,
"fragment_size": 150
},
"v_3": {
"number_of_fragments": 1,
"fragment_size": 150
}
}
},
"_source": {
"excludes": [
"v_6",
"v_13"
]
}
}
Result Sample
{
"took": 207,
"timed_out": false,
"_shards": {
"total": 3,
"successful": 3,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 8557,
"relation": "eq"
},
"max_score": 10.259903,
"hits": [
{
"_index": "xxxxx",
"_type": "_doc",
"_id": "xxxxx",
"_score": 10.259903,
"_source": {
"v_8": yyyyy,
"v_7": "xxxxx",
"v_5": "xxxxx",
"v_3": "xxxxx",
"v_1": "xxxxx",
"v_4": "xxxxx",
"v_9": yyyyy,
"v_10": yyyyy,
"v_12": true,
"v_11": yyyyy,
"v_2": "xxxx",
},
"highlight": {
"v_5": [
"xxxxx"
],
"v_6": [
"xxxxx"
],
"v_3": [
"xxxxx"
],
"v_2": [
"xxxxx"
]
}
},
.....
]
}
}