@warkolm
The first is abnormal, the second is normal
This command is used to judge abnormal/normal. thank you.
First
Restart.
Perform an index.
Check the term with '_termvectors' api.
=>get http://xxxxxxxxxxxxxx/_doc/67828/_termvectors?fields=query&term_statistics=true&realtime=true
Term 'xxxx' exists.
=> 찜질방: {
doc_freq: 16,
ttf: 16,
term_freq: 1,
tokens: [
{
position: 30,
start_offset: 77,
end_offset: 80
}
]
},
Check the term with '_explain' api.
=>post http://xxxxxxxxxxxxxxxxxxxxxxxx/_explain/67828
{
"query": {
"term": {
"query": {
"value": "찜질방",
"boost": 1.0
}
}
}
}
Receive 'no matching term' message response.
=>{
"_index": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"_type": "_doc",
"_id": "67828",
"matched": false,
"explanation": {
"value": 0.0,
"description": "no matching term",
"details":
}
}
Second
Restart.
Perform an index.
Check the term with '_termvectors' api.
=> http://xxxxxxxxxxxxxx/_doc/67828/_termvectors?fields=query&term_statistics=true&realtime=true
Term 'xxxx' exists.
=> 찜질방: {
doc_freq: 16,
ttf: 16,
term_freq: 1,
tokens: [
{
position: 30,
start_offset: 77,
end_offset: 80
}
]
},
Check the term with '_explain' api.
=>post http://xxxxxxxxxxxxxxxxxxxxxxxx/_explain/67828
{
"query": {
"term": {
"query": {
"value": "찜질방",
"boost": 1.0
}
}
}
}
Receive normal messages.
=>{
"_index": "xxxxxxxxx",
"_type": "_doc",
"_id": "67828",
"matched": true,
"explanation": {
"value": 8.704652,
"description": "weight(query:찜질방 in 10255) [PerFieldSimilarity], result of:",
"details": [
{ ......}