Can I get updates on? Or any alternate routes. Tha...
# community-help
i
Can I get updates on? Or any alternate routes. Thanks much • choosing b/w ANDing and ORing of various filter_by fields • Applying sorting on string type fields
k
@Ishan Kumar Singh String sorting is already available in recent RC builds, which many folks are using successfully. Can you please elaborate the question on filter_by?
i
the documentation only specify && operator on filter_by
so was wondering an || operator would be supported?
k
Typesense supports ORs within a field like this:
Copy code
filter_by=age:[10, 20, 30]
Typesense does not support cross-field ORs at the moment.
i
can we expect that across fields
k
We don't have an
||
operator support at the moment but it's on our roadmap.
i
Thanks, let me know in case a workaround can be implemented to get the same results as ORing across fields
k
One work around is to pre-compute the OR as a computed field while indexing.
i
Thanks that surely helps let you know in case of any more complications around this.šŸ™Œ
k
šŸ‘
v
Hey @Kishore Nallan can I know when can we expect cross-field ORs?
k
On our mid term roadmap, few months out.
j
@Ishan Kumar Singh @Vaibhav Mule Here's one work-around for cross-field ORs: https://github.com/typesense/typesense/issues/281#issuecomment-948179523