#community-help

Searching Variations like "2x4" versus "2 x 4"

TLDR Jeremy wanted to improve search functionality for phrases like "2x4" vs "2 x 4". Jason suggested enabling the split_join_tokens search parameter.

Powered by Struct AI
4
9mo
Solved
Join the chat
Dec 21, 2022 (9 months ago)
Jeremy
Photo of md5-f19f9935c88f60757ce1890a15ee20ac
Jeremy
09:18 PM
Hi, is there a proper way to allow for searches of "2x4" to return the same results as "2 x 4"? I tried adding a synonym for "x" and " x ", but I think the whitespace was removed when I create the synonym
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
10:19 PM
Could you try adding x to symbols_to_index when creating the collection?
Dec 22, 2022 (9 months ago)
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
06:39 AM
Just realized x is not a special character.

You want to enable the split_join_tokens search parameter
Jeremy
Photo of md5-f19f9935c88f60757ce1890a15ee20ac
Jeremy
06:29 PM
hmm not bad, think I might be able to work with that