pg_search icon indicating copy to clipboard operation
pg_search copied to clipboard

Multi-search weighing

Open olivierlacan opened this issue 8 years ago • 4 comments

I'm sorry if this is a dupe but I can't find the issue I remember looking up (perhaps it was a commit) where this was discussed.

I believe there is not currently a way to weigh results in a multi-search, but I have a vague memory of a somewhat hacky way to get around that. Or is there? Is this a feature you consider adding at some point, or is it not feasible for some obvious reason that escapes me?

I simply need to weigh ModelA above results for ModelB. I could do this on the front-end but if there's any pagination involved, it would quickly become a headache.

I'd like to help bring this feature if we can agree this is a good idea.

olivierlacan avatar Apr 07 '16 13:04 olivierlacan

+1

umerfarooq avatar May 11 '16 18:05 umerfarooq

You're probably thinking of #86. I posted a possible workaround there.

heisters avatar Jul 05 '16 22:07 heisters

Thanks @heisters. Since that issue is closed I wonder if @nertzy would consider this nowadays.

olivierlacan avatar Jul 06 '16 16:07 olivierlacan

Long-term, I've hoped to replace the single PgSearch::Document-based multisearch implementation with a generator that builds you a class that you can manage yourself. That would make it easier for developers to tweak how things work for themselves.

nertzy avatar Aug 07 '16 20:08 nertzy