pg_search with modified content

93 views Asked by At

Does anyone know how to modify columns content before pg_search stores it?

Full explanation:

I have model Article with columns title and body. In body I store article's body html.

PgSearch is configured with multisearchable against: [:title, :body].

When I search I get search content with html tags included, but I would like to stip all html tags from text before new PgSearch::Document is created in the first place.

0

There are 0 answers