diesel-rs / diesel_full_text_search

MIT License
72 stars 33 forks source link

Add setweight function #6

Closed moore3071 closed 1 year ago

moore3071 commented 6 years ago

A simplification of #4 without the ts_rank variants. This PR simply adds the setweight function of Postgres' fulltext search.

sgrif commented 6 years ago

I'm also not sure that we should allow any text expression here, since it very specifically has to be either A, B, C, or D.

sd2k commented 6 years ago

I'm also not sure it works? Postgres complained at me:

ERROR: function setweight(tsvector, text) does not exist