#community-help

Issue with filter_by on String Type Fields

TLDR Sidharth is facing problems when trying to perform filter_by on 2 separate fields of string type. Kishore Nallan suggests it may be a URL encoding issue.

Powered by Struct AI

1

Jan 05, 2023 (11 months ago)
Sidharth
Photo of md5-051f535431ff484f44f165e9a0b696a5
Sidharth
10:03 AM
Hello Folks
We are trying to perform filter_by on 2 separate field of string type
facet is set true in the schema
Its working when checking for single value
filter_by=exchange:A&&segment:X

But when we are trying to send a list as parameter, its not working in Curl
Tried following options
&filter_by=exchange:[A,B]&&segment:[X,Y]
&filter_by=exchange:A,B&&segment:X,Y

Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
10:05 AM
Probably some url encoding issue, try checking with a client.

1

Sidharth
Photo of md5-051f535431ff484f44f165e9a0b696a5
Sidharth
10:20 AM
Sure, let me try
Thanks