Handle 3 colors in Answers (use multiple fields with similar type of attribute)

Hi team,

Do you have any idea on how to make multiple colors searchable in Answers?

For example, an entity “watch” has 3 colors; profile.color is Black, c_bandColor is Blue, c_bezelColor is Red. In that case, we would like to search by “Black watch”, “Watch with a blue band”, and “Watch with a red bezel”.
I tried that with all those 3 field is nlp-filtered, but it failed (on the other hand “Watch with a black band” returned a result!). It seems “color” related words only sees “profile.color”.

Please advise me if you have any idea how to handle it!
Thanks,
Kaishi

Hi Kaishi,

Thanks for reaching out. There isn’t one way to accomplish this and it’s a bit tricky given the overlap of colors in the fields. Our suggestion would be to use textSearch on these three fields and add Facets for each one so that a user can select/narrow down the search results post-search themselves.

This is an interesting and specific use case so thank you for raising it. Let us know if you have any questions or other ideas that work well here.

Best,
Alyssa

1 Like

Hi Alyssa, thank you for the reply!! Your solution seems to be the best way in the current Answers.