I have a full_name field in my dataset, which contains first_name and last_name.
"fields": {
"full_name": "first_name last_name"
}
I need to query using the following conditions-
//1. with first_name last_name
search/?yql=select * from sources test where full_name contains 'first_name last_name';
//2. with only first_name
search/?yql=select * from sources test where full_name contains 'first_name';
//3. with only last_name
search/?yql=select * from sources test where full_name contains 'last_name';
//4. with last_name first_name
search/?yql=select * from sources test where full_name contains 'last_name first_name';
I have tried indexing as index and I am successful to get data using 1st, 2nd, and 3rd condition but not able to query with 4th condition.
Also is there any way where the spelling of first_name or last_name in full_name is not correct still I get the matching results?