Miss Katya Yakusheva,
I am not satisfied with the answer, in the following link,
https://getsatisfaction.com/apperyio/...
Pls help me out with the algorithm, i am not sure wat algorithm to use to achieve this....
I implemented the code
return '{"Address":{"$regex":"^'+value+'", "$options":"i"}}';
but what i am suggesting is suppose i have a list which searches an address of a particular place....
The above command oly lists the elements whose letter starts with ie No.34 Old Parks Road....
Usually a person when he types in he will not know the No. 34.... so i want the search to work in such a way that not oly the starting elements i want it to search the middle and last element too! how can i alter the above code in such a way that it searches using the keyword even though the keyword is present at the first or middle or last ....