I've got a few views exposed filters which are working great, and searching on multiple taxonomy terms. Not sure if it is possible, but I'm trying to figure out if you can sort a view based on the accuracy of the results. For example, a user may search for Term A, Term B, Term C and Term D. The following results are given:

Node 1
Maintains Term C

Node 2
Maintains Terms A C D

Node 3
Maintains Terms A B

I'm trying to have the output sort by the relevance of the result. For example, the output should sort as

Node 2
Node 3
Node 1

because Node 2 matched 3 of the 4 terms, Node 3 matched 2 of the 4, etc etc etc.

Is this possible?

Comments

flyingL123’s picture

I have a very simliar problem. I need to sort based on result "relevence" much like what you are descirbing. Anyone have any ideas about this?

WorldFallz’s picture

I only know of #365566: Views_search: Sort by relevance, but the patch is for d5 and there isn't any progress on it. It's a small patch though so it might not take much to convert to d6/views2.

flying_q’s picture

Thanks worldfallz, I'll take a look this evening and see If i can convert.

flying_q’s picture

Looks like this is really only useful if you used Search within views. I'm just trying to determine how many taxonomy terms matched my result. Thanks for the link nonetheless.

halloffame’s picture

Anything ever developed for d7?