This query use phrase prefix and returns 5k records
POST index/_search
{
"from": 0,
"size": 10,
"query": {
"match_phrase_prefix": {
"Identifiers.Identifier.$": {
"query": "nct"
"max_expansions": 1024
}
}
}
}
When I use following query with wild card it gives me 200K results
GET index/_search
{
"from": 0,
"size": 10,
"query": {
"query_string": {
"fields": [
"Identifiers.Identifier.$"
],
"query": "nct*",
"analyze_wildcard": true,
"boost": 2
}
}
}
Most of my values in Identifiers has NCT in it , why do I see such a big difference in both these results ?