Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • tim 1 post 21 karma points
    Mar 28, 2013 @ 17:52
    tim
    0

    sorting by tag relevance

    Hi all,

    Ive had a look about but cant find anything similar to what I want to do and am not sure if its possible (Im sure it is, I just cant!).

    I have setup a site, have created an article tagging datatype, which I use on all articles, I can search them, pull out the relevant ones and view all matches but what I wanted to was order the results by relevance to the number of tags that matched and wondered if this was something within the API that was do-able or I would have to write it myself.

    So if one article has three tags and another has 2 that match and another 1 that matches, I'd like them returned with the one with 2 at the top (Im sure you get the idea).

    Im just looking at this at the mo later there will be a whole load of other factors that will sort them after this, but this is just the first set of results tha would be returned, also is it possible to get the count of matches ?

    Im using Tag.GetNodesWithTags("testing, foo").ToList(); to return the matching one currently.

    thanks

    t

Please Sign in or register to post replies

Write your reply to:

Draft