HI, it seems the filter_by query doesn't work wit...
# community-help
m
HI, it seems the filter_by query doesn't work with space. can you suggest what I am missing here. I have enabled index: true, steam: true, infix: true on given field
filter_by: "industry:['Commercial Real Estate']"
gives 0 results even though there are records.
j
Could you help replicate the issue with a small sample dataset using curl like this: https://gist.github.com/jasonbosco/7c3432713216c378472f13e72246f46b
m
I am sharing some screenshots. here if you saw i am getting results with
Software
but not with
Software Development
is it something to do with token_seperator?
j
Do you have
symbols_to_index
set in the collection schema?
Could you try converting the single quote to backticks in the filter?
So try this:
Copy code
filter_by: "industry:[`Commercial Real Estate`]"
m
I have tried with Backtick but it doesn't work.
I didn't use
symbols_to_index
but by default behavior should be separated by space right?.
m
Do you happen to have stemming enabled for the industry field? We had a similar issue recently: https://github.com/typesense/typesense/issues/2044
šŸ‘€ 1
m
Yes i do have steam flag enable
m
Right, I’d expect the filtering to work without stemming then, and the TS team will look into the issue :)
šŸ‘ 1
m
I noticed this pattern but had a doubt, Thanks for clearing this out.
m
np, would be good to šŸ‘ or comment on the github issue if it applies to your case :)
m
Yes sure.
šŸ™Œ 1