Ranking Module for default search and logic search

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
php_reddy
Forum Newbie
Posts: 1
Joined: Tue Jan 13, 2009 5:35 am

Ranking Module for default search and logic search

Post by php_reddy »

Hi,

I read some posts which are already discussed about Ranking.

I want to write a custom ranking functionality for Full Text Search (FTS). Let me the explain the logic with two cases:
1. Search word : "PHP"
2. Search word: "PHP and AJAX"

So for 1st search word i received 20 results: I can count the number of search word found in each result and rank them and also i can give the priority to some database columns

For 2nd search word: i found 5 results (and is for LOGIC AND) and the number of times each word repeated in the 5 results are (Assumption : Customer has no choice to set the priority for the keywords)
PHP AJAX
a. 5 1
b. 4 1
c. 3 3
d. 2 2
e. 1 4

So now i can rank these 5.
So can anyone share the logic for a proper ranking approach.

Thank you
Post Reply