I see there is support for "prefixes", but is ther...
# community-help
c
I see there is support for "prefixes", but is there a way to at least emulate suffix support (filter on words that "end with" a certain string)? https://typesense.org/docs/28.0/api/search.html#query-parameters
Hi @Jason Bosco... is there "ends with" support? Or is there a clever way to emulate it?
j
You could manually index the last few characters as separate permutations of strings in a string array and search on that
So for a string like test, you’d create t st est As separate strings in an array, and then search that array
This is a very memory intensive way to achieve this though
c
Thanks. I solved it by adding a reverse version of my string, and then applying a prefix search. It’d be great if v29 could support suffix matching filters
j
Ha! That's a nice way to achieve this 😄 Could you open a GitHub issue with this feature request, so we can track interest
c
Sure . Link please
j
c