#community-help

Facet Values Treated as Same Due to Dash Ignored

TLDR Aljosa encountered an issue where different facet values were considered identical due to a dash. Jason explained that special characters are indexed in newer versions. Aljosa resolved to enable this option.

Powered by Struct AI
+11
5
22mo
Solved
Join the chat
Nov 27, 2021 (22 months ago)
Aljosa
Photo of md5-6bb7313b20c5179141d6908d6c09b2d5
Aljosa
09:19 PM
Having trouble determining whether a certain behaviour is expected or known.

I have two distinct facet values for a certain field.

Example values (not exact ones I have)

• This-Word
• Thi-Sword
When displayed (through the instant search adapter in a facet), they show up separately. But when selecting either of these values, they get treated as the same value so the total results returned is equivalent both combined (and selecting both doesn't change anything since all results are already returned).

I imagine it's just the dash that gets ignored so both get turned into "thisword" or something, but it seems like strange default behavior and doesn't appear documented.
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
10:04 PM
This was the default behavior in v0.21… If you use the latest RC version we’ve added some special characters to be indexed by default
Nov 28, 2021 (22 months ago)
Aljosa
Photo of md5-6bb7313b20c5179141d6908d6c09b2d5
Aljosa
03:45 AM
Awesome! I'm on RC34 of 0.22 so I'll enable that option 🙂
03:45
Aljosa
03:45 AM
tyvm !
+11