Merge Feeds by Relevance

Discussion in 'PHP' started by ojsimon, Jan 13, 2008.

  1. #1
    Hi
    I would like to merge several feeds together and then sort the listings by relevance to a certain term which i can specify, is this possible? and how would i do this?

    Thanks
     
    ojsimon, Jan 13, 2008 IP
  2. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Hello,

    What kind of "feeds" and how do you define "relevance" (keywords? length?).

    Jay
     
    jayshah, Jan 14, 2008 IP
  3. ojsimon

    ojsimon Active Member

    Messages:
    459
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    the feeds are the youtube latest video feed, metacafe latest video feed and the break latest video feed, they should be sorted by how they relate to a certain term i specify in their description or title, for example the term could be funny

    Thanks
     
    ojsimon, Jan 14, 2008 IP
  4. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #4
    That would mean the word "funny" MUST appear in the description or title.

    In which case, you can write a small algorithm to sort titles/descriptions for number of occurrences or position in string. It's possible.
     
    jayshah, Jan 14, 2008 IP
  5. ojsimon

    ojsimon Active Member

    Messages:
    459
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #5
    there is a small problem with that, because the feeds i am fetching from are already adding a tag to the end of a feed and so they all contain the term, i would just like to make them be ordered by their use of the term rather than ordered by date and time. is this still possible if so how?

    thanks
     
    ojsimon, Jan 14, 2008 IP
  6. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #6
    You would need to have PHP fetch the feed(s) and re-order them, as I've implied above. Everything is possible.
     
    jayshah, Jan 14, 2008 IP
  7. ojsimon

    ojsimon Active Member

    Messages:
    459
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #7
    could you explain how to do this in a bit more detail, i am a begginer programmer, please could you give me some resources that may help

    thanks
     
    ojsimon, Jan 14, 2008 IP
  8. ojsimon

    ojsimon Active Member

    Messages:
    459
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #8
    Please help, someone.


    Thanks
     
    ojsimon, Jan 15, 2008 IP