Hi,
I stuck on like searching on multiple indexes on Elasticsearch. I am using a query string and must to extract data for the particular user.
Example JSON
index "tasks"
{
"channelName": "Weekly Task-(HT-01030284)",
"participants": [
{
"id": 4361,
"channelId": 12053,
"sfdcId": "0034z00002g0c3GAAQ",
"firstName": "Mayank",
"lastName": "Maheshwari",
"profileImage": "",
"gender": "Male",
"isDeleted": false
}
]
}
Applying code.
GET /tasks/_search
{
"query": {
"bool": {
"must": [
{
"query_string": {
"query": "HT-01030284",
"fields": [
"channelName"
]
}
},
{
"match": {
"participants.sfdcId": "0034z00002g0c3GAAQ"
}
}
]
}
}
}
But in some words search is not working. Please help me to write a query that will search as SQL does with a like.