Open bkeepers opened 4 years ago
I think the most correct way to do this would be to set the weight in the expression that creates the tsvector. You can also make a single tsvector that combines the two columns, each with their own weight.
There is also a chance that we could do the weighting you want by calling the setweight(tsvector, "char")
function after the fact.
It looks like weighting only works for columns in the
against
option. When specifying thetsvector_column
, the results seem to ignore the weights.Is this expected? Is there a technical reason that weights can't be used with tsvector columns?
Here's the example configuration that I'm using:
And here's the setup for my test:
And here's the failing result:
cc @andrewbredow