I have structure like below
{
"name": "",
"age": 35,
"hobbies": "gardening, skiing, horse riding, soccer",
"Address": {
"addrline 1": "",
"addrline 2": "",
"City": "",
"Zip": ""
}
}
Would like to search based on hobby. e.g. for input "skiing" should return this Document. I have around 80k records. What would be the best Indexing strategy for "hobbies" element so that it can return result fast.
Do I have to search "hobbies" only by string based regex pattern or is there any other technique for faster data retrieval?