Hi All,
I want to use elastic search queries to design a search engine wherein if I type a letter it should throw me all the possible name starting with the letter and as I type other letters the search should be refined.
I have written this query but it gives me only the names which exactly match the one that I pass in the query. Could anyone help me with this?
{
"query": {
"bool": {
"must": [{
"match": {
"name": "Robert"
}
},
{
"match": {
"name": "M"
}
}, {
"match": {
"name": "Generio"
}
}
]
}
}
}
Thank You