PostgreSQL - Full-Text Search
You want to search for documents containing the word 'run' but not 'running'. Which
to_tsquery expression correctly achieves this?to_tsquery expression correctly achieves this?& and NOT is !. to_tsquery('run & !running') uses these correctly. to_tsquery('run | !running') uses OR which is wrong. to_tsquery('run & !run') excludes 'run' itself. to_tsquery('run ! running') has invalid syntax (missing operator between 'run' and '!').15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions