Predict the output
What does PostgreSQL's full-text match return?
SELECT to_tsvector('english', 'Running fast APIs')
@@ to_tsquery('english', 'run & api');Hint 1 of 1
What does stemming do to 'running'?
Choose an answer, then open Show answer below to check it.
Show answer
Answer: A t
Correct. Stemming reduces running to run and APIs to api, so both terms match.
The english configuration lowercases and stems words, so running and APIs become run and api in both the document and the query. & requires both terms, and both are there.
Why not the others?
- B
f. The english configuration stems the words. - C An error: & is not valid. & means AND in tsquery.
- D
NULL. Both sides are non-null.
| ?column? |
|---|
| t |
(1 row)