Skip to main content
text looks in the input and the output of a span. There are four kinds. The examples use the sample data. words: every word, in any order. The newest spans come first (sort: "newest" is the default).
phrase: the words next to each other, in this order. m2 has “policy refund”, so it is not found.
With words, each word can be in another place: m2 is found too.
contains: a piece inside a word, like SQL LIKE '%efun%'. Upper and lower case are the same.
With a space, the first piece is the end of a word and the last piece is the start of a word. fund pol is in “refund policy” (r1, m1), not in “policy refund” (m2):
prefix: whole words, and the last word may go on. look finds “lookup”:

Errors

text does not look in the error message of a span. Use errorText, with the same four kinds. tl1 failed with “timeout”:

What a word is

  • Letters and digits with no space between them are found together, in their order: e-mail is e next to mail, and user@example.com is that address.
  • Thai, Lao, Khmer, Burmese and Korean have no spaces between words. Magpie finds a run of these characters as pairs of characters. Chinese and Japanese are found too.
  • A word of up to 255 bytes (a hash, an id) is found. A word of 256 bytes or more stays in the stored text, but no text search finds it.
  • Limits of contains and prefix (a short piece is slow; a piece that matches more than 16,384 words in one part of the store is refused): see limits.

Filter spans

Put text together with kind, time, tag and attributes.

Queries overview

The sample data and the routes.