我的数据集中有一个全名字段,其中包含名和姓。
"fields": {
"full_name": "first_name last_name"
}
我需要使用以下条件进行查询-
//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';
我尝试将索引作为 index ,但我成功使用1st,2nd和3rd条件获取数据,但无法使用4th条件进行查询。
还有什么办法可以使我获得匹配结果的全名中first_name或last_name的拼写不正确?