Hello @Kishore Nallan
{
"collection": "knipexoficial_34040217659",
"q": "02 02 180",
"query_by": "title,description,product_type,tags,vendor,variants.sku",
"facet_by": "options_facet_ts7.*",
"page": 1,
"per_page": 12,
"include_fields": "id,title,description,vendor,handle,tags,variants,options_ts7,images,image,key_words_ts7,review_rating_value_ts7,review_rating_count_ts7,product_type,inventory_qty,product_id",
"min_len_1typo": 4,
"min_len_2typo": 5,
"pre_segmented_query": true,
"text_match_type": "max_weight",
"query_by_weights": "10,4,3,2,1,1",
"prioritize_token_position": true,
"max_candidates": 100,
"use_cache": true,
"sort_by": "",
"filter_by": "date:>0 && is_deleted:0",
"validate_field_names": false,
"highlight_fields": "title",
"snippet_threshold": 1,
"highlight_affix_num_tokens": 100
}
Products:
1. Title: 'KNIPEX 88 02 180 Pinzas de extensión pico de loro Alligator 180 mm (7.25″)'
2. Title: 'KNIPEX 02 02 180 SB Pinza universal de alta palanca con mangos ergonómicos pavonada 180 mm (7.25″)'
Search term:
'02 02 180'
Issue:
When searching for "02 02 180", Product 1 appears before Product 2.
But I expect Product 2 to come first because it contains the exact sequence "02 02 180".
Goal:
I want to configure Typesense so that exact multi-token sequence matches (phrase-like matches) get the highest relevance score.
Question:
Which Typesense parameters or configuration should I adjust so that Product 2 ranks above Product 1 for the query "02 02 180"?
Looking forward to your guidance.
Thank you!