Search for substring ( need performant approach)

This has come up a few times, but it’s probably a good to gather the discussions together!

Forum topics

Stack Overflow

The single most comprehensive notes might be this post on stack overflow:

NGram in general

The performant searches come down to using NGram function. It’s not in the docs. My understanding is that it’s still unstable. Yet if you need to build up a performant sub-string search, this is how to do it.

Examples in the wild

The fwitter example goes through several steps to show how NGram can be used in different ways.

@eigilsagafos shared a gist (Fauna Ngram search example · GitHub) .

That gist is linked from the Awesome Fauna repo (GitHub - fauna-labs/awesome-fauna: Curated list of FaunaDB resources). I am not sure if any examples shared there implement searching.