Thank you @dadoonet for the remarks.
Below, I will put one create and one search query code.
My main target is in case I search via three names/words to get results with these three names or similar two-part names with hight scores.
In this combination of settings, the people with only two-part names are with too low scores.
I assume that the algorithm compares the string length also but this is not the desired effect from me.
And other my question is, because I am not sure, whether with the Standard cloud plan is it possible to install and use official plugins (not a custom plugin) also analyzers?
Valid NEST response built from a successful(200) low level call on
POST: /watchlistentries/_bulk
# Request:
{
"index": {
"_id": "637261905404690685"
}
} {
"id": 637261905404690685,
"name": {
"firstName": "Donald",
"lastName": "Trump",
"createDate": "2020-05-27T18:35:40.4692597+03:00",
},
"watchListId": 0,
"createDate": "2020-05-27T18:35:40.4765106+03:00",
} {
"index": {
"_id": "637261905404765615"
}
} {
"id": 637261905404765615,
"name": {
"firstName": "Vladimir",
"middleName": "Vladimirovich",
"lastName": "Putin",
"createDate": "2020-05-27T18:35:40.4770289+03:00",
},
"watchListId": 0,
"createDate": "2020-05-27T18:35:40.4770359+03:00",
}
# Response: {
"took": 7,
"errors": false,
"items": [{
"index": {
"_index": "watchlistentries",
"_type": "_doc",
"_id": "637261905404690685",
"_version": 1,
"result": "created",
"_shards": {
"total": 2,
"successful": 2,
"failed": 0
},
"_seq_no": 730518,
"_primary_term": 1,
"status": 201
}
}, {
"index": {
"_index": "watchlistentries",
"_type": "_doc",
"_id": "637261905404765615",
"_version": 1,
"result": "created",
"_shards": {
"total": 2,
"successful": 2,
"failed": 0
},
"_seq_no": 730519,
"_primary_term": 1,
"status": 201
}
}]
}
Valid NEST response built from a successful (200) low level call on
POST: /watchlistentries/_search?typed_keys=true
# Request:
{
"query": {
"match": {
"name.fullName": {
"analyzer": "standard",
"auto_generate_synonyms_phrase_query": true,
"fuzziness": 3.0,
"fuzzy_transpositions": true,
"max_expansions": 100,
"minimum_should_match": "2<75%",
"operator": "or",
"query": "Donald John Trump",
"_name": "SearchQuery"
}
}
},
"size": 100
}
# Response:
{
"took": 731,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 1,
"relation": "eq"
},
"max_score": 8.728588,
"hits": [{
"_index": "watchlistentries",
"_type": "_doc",
"_id": "430905",
"_score": 8.728588,
"_source": {
"type": 1,
"name": {
"fullName": "Jean Ronald OSCAR",
"firstName": "Jean",
"middleName": "Ronald",
"lastName": "OSCAR",
"createDate": "2020-05-15T07:45:04.0221748Z",
},
"createDate": "2020-05-15T07:45:04.0221745Z",
},
"matched_queries": ["SearchQuery"]
}]
}
}