Hello @Kishore Nallan
I am using the following union query it's showing duplicate results because Apple i starts with a and also it matches with filter_by in the second query, so how can we overcome this process.
{
"union": true,
"searches": [
{
"collection": "fruits",
"q": "a",
"query_by": "title",
"filter_by": "type:collection && is_deleted:0",
"min_len_1typo": 4,
"min_len_2typo": 5,
"pre_segmented_query": true,
"text_match_type": "max_weight",
"prioritize_token_position": true,
"use_cache": true
},
{
"collection": "fruits",
"q": "*",
"query_by": "title",
"filter_by": "type:collection && is_deleted:0 && title:[apple,banana]",
"sort_by": "handle:desc"
}
]
}