Skip to main content
added 3 characters in body
Source Link
Erwin Brandstetter
  • 182.2k
  • 28
  • 457
  • 620

Just use the simple text search configuration, which works with the simple dictionary and does not do any stemming:

CREATE INDEX ON tbl USING GIN (to_tsvector('simple', data));

AnAnd query accordingly:

SELECT *
FROM   tbl
WHERE  to_tsvector('simple', data) @@ to_tsquery('simple', 'foo');

Related:

Just use the simple text search configuration, which works with the simple dictionary and does not do any stemming:

CREATE INDEX tbl USING GIN (to_tsvector('simple', data));

An query accordingly:

SELECT *
FROM   tbl
WHERE  to_tsvector('simple', data) @@ to_tsquery('simple', 'foo');

Related:

Just use the simple text search configuration, which works with the simple dictionary and does not do any stemming:

CREATE INDEX ON tbl USING GIN (to_tsvector('simple', data));

And query accordingly:

SELECT *
FROM   tbl
WHERE  to_tsvector('simple', data) @@ to_tsquery('simple', 'foo');

Related:

Source Link
Erwin Brandstetter
  • 182.2k
  • 28
  • 457
  • 620

Just use the simple text search configuration, which works with the simple dictionary and does not do any stemming:

CREATE INDEX tbl USING GIN (to_tsvector('simple', data));

An query accordingly:

SELECT *
FROM   tbl
WHERE  to_tsvector('simple', data) @@ to_tsquery('simple', 'foo');

Related: