Skip to main content

Search Patterns

Tv uses a fuzzy matching algorithm to filter its list of entries. Its behavior depends on the input pattern you provide.

MatcherPattern
Fuzzyfoo
Substring'foo / !foo to negate
Prefix^foo / !^foo to negate
Suffixfoo$ / !foo$ to negate
Exact^foo$ / !^foo$ to negate

These patterns (and matchers) can be associated (as "AND") to express complex search queries such as:

car 'bike !^car !bike$

which translates to:

anything that:
- fuzzy matches `car`
- contains the exact substring `bike`
- does not start with `car`
- does not end with `bike`

And will produce the following results:

haystackmatchexplanation
the car drove past the bikeends with bike
car, bike or bus?starts with car
the black motorbike flew past the tourists
the motorbike flew past the touristsdoesn't contain 'car'

For more information on the matcher behavior, see the nucleo-matcher documentation.