We have a native query for full text search that uses a GIN index like so:
CREATE INDEX idx_column1 ON table1 USING gin (to_tsvector('english', column1));
SELECT *
FROM table1
where to_tsvector('english', column1) @@ to_tsquery('searchedText')
However, we were unable to replicate this query in HQL, because hibernate errors on symbol @. How to add symbol @ to the hibernate dialect?
you can find it in this link, that link will guide you to :
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With